From fb7dc864f2db986c678d7cc1e6f58b52e31508bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Silvani?= Date: Sun, 17 Mar 2024 11:07:33 -0300 Subject: [PATCH] fix(cd): Use github.sha variable --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c424c83c..ae469ba8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,7 @@ jobs: SSH_HOST: ${{ secrets.SSH_HOST }} - name: Build - run: ssh prod 'cd flok && git fetch && git reset --hard $GITHUB_SHA && npm install' + run: ssh prod 'cd flok && git fetch && git reset --hard ${{ github.sha }} && npm install' - name: Restart server run: ssh prod 'sudo systemctl restart flok'