Skip to content

Commit

Permalink
CI: custom pat to fix "pull request create failed" error
Browse files Browse the repository at this point in the history
pull request create failed: GraphQL: GitHub Actions is not permitted to create or approve pull requests (createPullRequest)

Error: Process completed with exit code 1.

more info: https://github.com/devchat-ai/devchat-intellij/actions/runs/6785665676/job/18444488351

Signed-off-by: Daniel Hu <[email protected]>
  • Loading branch information
daniel-hutao committed Nov 7, 2023
1 parent 4879bd3 commit 251792c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ jobs:
# Upload artifact as a release asset
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*

# Create a pull request
- name: Create Pull Request
if: ${{ steps.properties.outputs.changelog != '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_TOKEN }}
run: |
VERSION="${{ github.event.release.tag_name }}"
BRANCH="changelog-update-$VERSION"
Expand Down

0 comments on commit 251792c

Please sign in to comment.