forked from BLC/sgeUpdated
Update sgeupdated pipeline v22-
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 7s
This commit is contained in:
@@ -38,11 +38,11 @@ jobs:
|
||||
cd /home/ubuntu/Bgreen/sgeUpdated
|
||||
|
||||
# 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)
|
||||
# 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
|
||||
echo "No file changes detected between HEAD and origin/main."
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
fi
|
||||
|
||||
# 3. Update the local repository to the new version
|
||||
git reset --hard origin/main
|
||||
git reset --hard myfork/main
|
||||
|
||||
BACKEND_CHANGED=false
|
||||
FRONTEND_CHANGED=false
|
||||
|
||||
Reference in New Issue
Block a user