Update sgeupdated pipeline v22-

This commit is contained in:
2025-10-24 15:35:57 +03:00
parent 18c8c49a3d
commit d26ca12e0c

View File

@@ -38,11 +38,11 @@ jobs:
cd /home/ubuntu/Bgreen/sgeUpdated cd /home/ubuntu/Bgreen/sgeUpdated
# 1. Fetch the latest code # 1. Fetch the latest code
git fetch origin main git fetch myfork main
# 2. See what files changed between your current version (HEAD) and the new one (origin/main) # 2. See what files changed between your current version (HEAD) and the new one (origin/main)
# We add '|| true' in case there are no diffs, which would stop 'set -e' # We add '|| true' in case there are no diffs, which would stop 'set -e'
CHANGED_FILES=$(git diff --name-only HEAD origin/main) || true CHANGED_FILES=$(git diff --name-only HEAD myfork/main) || true
if [ -z "$CHANGED_FILES" ]; then if [ -z "$CHANGED_FILES" ]; then
echo "No file changes detected between HEAD and origin/main." echo "No file changes detected between HEAD and origin/main."
@@ -52,7 +52,7 @@ jobs:
fi fi
# 3. Update the local repository to the new version # 3. Update the local repository to the new version
git reset --hard origin/main git reset --hard myfork/main
BACKEND_CHANGED=false BACKEND_CHANGED=false
FRONTEND_CHANGED=false FRONTEND_CHANGED=false