Skip to content

Commit 1e47c1a

Browse files
authored
feat: orb-hil version file (#1099)
a QoL change not to check the git log every time
1 parent ef9cf00 commit 1e47c1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy-hil.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ jobs:
4545
- name: Deploy
4646
run: sudo nixos-rebuild switch --flake .
4747

48+
- name: Write orb-hil version file
49+
run: |
50+
version="$(grep -oP '(?<=version = ")[^"]+' nix/packages/orb-hil.nix)"
51+
sudo install -d -m 755 /etc/worldcoin
52+
printf '%s\n' "${version}" | sudo tee /etc/worldcoin/orb-hil.version > /dev/null
53+
sudo chmod 644 /etc/worldcoin/orb-hil.version
54+
echo "orb-hil version: ${version}"
55+
4856
- name: Install HIL SSH key
4957
env:
5058
HIL_SSH_PRIVATE_KEY: ${{ secrets.HIL_PRIVATE_SSH_KEY }}

0 commit comments

Comments
 (0)