We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78752fb commit 74e083cCopy full SHA for 74e083c
1 file changed
.github/workflows/prepare-release-pr.yml
@@ -6,14 +6,23 @@ on:
6
branches:
7
- master
8
9
+# Add this permissions block
10
+permissions:
11
+ contents: write
12
+ pull-requests: write
13
+
14
jobs:
15
create_release_pr:
16
runs-on: ubuntu-latest
17
steps:
18
- uses: actions/checkout@v4
19
with:
20
fetch-depth: 0
21
+ # Add this line to use the token for authentication
22
+ token: ${{ secrets.GITHUB_TOKEN }}
23
- run: |
24
+ git config user.name "GitHub Actions"
25
+ git config user.email "actions@github.com"
26
git checkout -b release-main
27
git push origin release-main --force
28
- uses: peter-evans/create-pull-request@v5
@@ -22,3 +31,4 @@ jobs:
31
title: "Automated Release PR: release-main -> main"
32
body: "Automated release changes."
33
branch: release-main
34
0 commit comments