From 7dac1598dc7b9bb901a93ef6e8a4465f107ada7a Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Tue, 10 Mar 2026 00:53:05 +0300 Subject: [PATCH] fix: deploy workflow stash local changes before git pull git pull was silently failing when VPS had local modifications, causing deploys to not actually update the code. --- .github/workflows/deploy-vps.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-vps.yml b/.github/workflows/deploy-vps.yml index 6a9dcfd..88d77ba 100644 --- a/.github/workflows/deploy-vps.yml +++ b/.github/workflows/deploy-vps.yml @@ -13,10 +13,13 @@ jobs: username: root key: ${{ secrets.VPS_SSH_KEY }} script: | + set -e cd /opt/subquery + git stash --include-untracked || true git pull origin main yarn install --frozen-lockfile ./node_modules/.bin/subql codegen pezkuwi-governance.yaml ./node_modules/.bin/subql build pezkuwi.yaml docker compose -f docker-compose.prod.yml build docker compose -f docker-compose.prod.yml up -d + git stash pop || true