fix: beta workflow again again again (#6706)

This commit is contained in:
Louis Lam 2026-01-13 18:08:11 +08:00 committed by GitHub
parent 7dac99ef70
commit 4e68b8d049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,9 +41,11 @@ jobs:
- name: Create release branch - name: Create release branch
env: env:
VERSION: ${{ inputs.version }} VERSION: ${{ inputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
# Delete remote branch if it exists # Delete remote branch if it exists
git push origin --delete "release-${VERSION}" || true git push origin --delete "release-${VERSION}" || true
# Delete local branch if it exists # Delete local branch if it exists