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 f2f0e1a commit 3fbb43f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/run-sync-script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ jobs:
FIRST_NAME="Max"
DOMAIN="gmail.com"
EMAIL="${FIRST_NAME}BaseCode@${DOMAIN}"
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 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 fetch origin
git pull --rebase origin auto-sync-update
git add -A
git commit -m "Auto-sync: Update after running sync.py script" || echo "No changes to commit."
git push https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git auto-sync-update
git push --force https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git auto-sync-update
gh pr create --title "Auto-sync: Update after running sync.py script" --body "This PR was automatically generated by the workflow."

0 comments on commit 3fbb43f

Please sign in to comment.