fix: use force push with GitHub token authentication
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
This commit is contained in:
parent
010e1b4421
commit
ac0853e913
4
.github/workflows/beta-release.yml
vendored
4
.github/workflows/beta-release.yml
vendored
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user