Skip to content

Commit

Permalink
fix: Switch to PAT for creating PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
yanliu38 committed Jan 25, 2025
1 parent 7d4847b commit 281ecaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Use PAT instead of GITHUB_TOKEN for PR creation to avoid error
# Error: GitHub Actions is not permitted to create or approve pull requests.
token: ${{ secrets.DC_REPO_WRITE }}
commit-message: "chore: bump version to ${{ needs.create-release.outputs.version }}"
title: "chore: bump version to ${{ needs.create-release.outputs.version }}"
body: |
Expand Down

0 comments on commit 281ecaa

Please sign in to comment.