Skip to content

Commit 74e083c

Browse files
fix: update-workflow
1 parent 78752fb commit 74e083c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/prepare-release-pr.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ on:
66
branches:
77
- master
88

9+
# Add this permissions block
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
914
jobs:
1015
create_release_pr:
1116
runs-on: ubuntu-latest
1217
steps:
1318
- uses: actions/checkout@v4
1419
with:
1520
fetch-depth: 0
21+
# Add this line to use the token for authentication
22+
token: ${{ secrets.GITHUB_TOKEN }}
1623
- run: |
24+
git config user.name "GitHub Actions"
25+
git config user.email "actions@github.com"
1726
git checkout -b release-main
1827
git push origin release-main --force
1928
- uses: peter-evans/create-pull-request@v5
@@ -22,3 +31,4 @@ jobs:
2231
title: "Automated Release PR: release-main -> main"
2332
body: "Automated release changes."
2433
branch: release-main
34+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)