Skip to content

Commit 7480dab

Browse files
committed
ci: update gh_pages workflow permissions and committer email
1 parent 4560b39 commit 7480dab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gh_pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ on:
1212
required: false
1313

1414
permissions:
15-
contents: read
15+
contents: write # for peter-evans/create-pull-request to create branch
16+
pull-requests: write # for peter-evans/create-pull-request to create a PR
1617

1718
jobs:
1819
build:
@@ -51,7 +52,7 @@ jobs:
5152
if: always()
5253
run: |
5354
git add .
54-
git config --local user.email ""
55+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
5556
git config --local user.name "Github Actions"
5657
git diff --cached
5758
git commit -a -m "Update api for ${{steps.version.outputs.version}}" || true

0 commit comments

Comments
 (0)