Skip to content

Commit

Permalink
Update run-sync-script.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Jan 13, 2025
1 parent e03f729 commit 1a861c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/run-sync-script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
else
echo "No changes detected"
echo "changes=false" >> $GITHUB_ENV
fi
shell: bash

- name: Commit and create pull request
Expand All @@ -50,14 +49,14 @@ jobs:
DOMAIN="gmail.com"
EMAIL="${FIRST_NAME}BaseCode@${DOMAIN}"
git config --global pull.rebase true
git config --global user.email "$EMAIL"
git config --global user.name "Max Base (GitHub Actions)"
git checkout -b auto-sync-update || git checkout auto-sync-update
git stash
git pull origin auto-sync-update --rebase || echo "Rebase failed, performing merge instead."
git fetch origin auto-sync-update
git merge origin/auto-sync-update --no-ff -m "Auto-sync: Merge with remote changes" || echo "Merge conflicts detected, handling manually."
git add -A
git commit -m "Auto-sync: Update after running sync.py script" || echo "No changes to commit."
Expand Down

0 comments on commit 1a861c9

Please sign in to comment.