diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f8593aaa5..bdc3a107b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,7 +62,7 @@ jobs: DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH }} - name: Stop Bot Process if: ${{ steps.release.outputs.release == 'yes' }} - run: ssh bot 'source ~/.zshrc; pm2 stop genesis-prod worker-prod; pm2 delete genesis-prod worker-prod' + run: ssh bot 'source ~/.zshrc && { pm2 stop genesis-prod worker-prod; pm2 delete genesis-prod worker-prod } || echo "Nothing to stop"' - name: Update Bot server if: ${{ steps.release.outputs.release == 'yes' }} run: ssh bot 'source ~/.zshrc && cd ~/genesis && git checkout -- . && git fetch --all && git reset --hard origin/master'