From 22c909cfa58bb521decff0b44467243112b0b337 Mon Sep 17 00:00:00 2001 From: hizumi Date: Wed, 10 Dec 2025 20:20:06 -0600 Subject: [PATCH] increase logging in deploy script for some reason it seems to not be fully updating the local repo, so increase logging and double pull --- .gitea/workflows/cd-deploy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/cd-deploy.yaml b/.gitea/workflows/cd-deploy.yaml index 5226a98..98e5593 100644 --- a/.gitea/workflows/cd-deploy.yaml +++ b/.gitea/workflows/cd-deploy.yaml @@ -46,8 +46,14 @@ jobs: - name: Update Application Code run: | cd /var/www/html/milsim-site-v4 + version=`git log -1 --format=%H` + echo "Current Revision: $version" + echo "Updating to: ${{ github.sha }} sudo -u nginx git reset --hard sudo -u nginx git pull origin main + sudo -u nginx git pull origin main + new_version=`git log -1 --format=%H` + echo "Sucessfully updated to: $new_version - name: Update Shared Dependencies and Fix Permissions run: |