fix: CI auto-merge push auth — set remote URL with GITHUB_TOKEN before push

This commit is contained in:
dadaloop82
2026-05-23 08:21:26 +00:00
parent 6320b575e0
commit 83a0df272a
+1
View File
@@ -111,6 +111,7 @@ jobs:
- name: Merge develop → main
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
LAST=$(git log --oneline -1 origin/develop)
git checkout main
git pull --ff-only origin main