diff --git a/.gitea/workflows/sgeupdated.yml b/.gitea/workflows/sgeupdated.yml index 20252f0..13d680d 100644 --- a/.gitea/workflows/sgeupdated.yml +++ b/.gitea/workflows/sgeupdated.yml @@ -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