fix: use force push with GitHub token authentication

Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-13 05:49:40 +00:00
parent 010e1b4421
commit ac0853e913

View File

@ -39,9 +39,13 @@ jobs:
node-version: 24
- name: Create release branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Configure git to use the GitHub token for authentication
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
# Delete local release branch if it exists
git branch -D release || true
# Create new release branch from current HEAD (master)