Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 88e675d

Browse files
authored
fix(workflows): requires access token
Signed-off-by: Claudio Wunder <cwunder@gnome.org>
1 parent f16c9c4 commit 88e675d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/sync-api.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ on:
88
jobs:
99
sync-api-docs:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- name: Git Checkout
1315
uses: actions/checkout@v3
1416
with:
1517
ref: main
18+
token: ${{ secrets.ACCESS_TOKEN_ACTIONS }}
1619

1720
- name: Setup Node.js
1821
uses: actions/setup-node@v3
@@ -28,9 +31,8 @@ jobs:
2831
run: |
2932
npm run sync-api
3033
31-
- name: Check for file changes & commit files
34+
- name: Commit API changes
3235
uses: stefanzweifel/git-auto-commit-action@v4
3336
with:
3437
commit_message: 'chore(api): sync auto-generated docs'
35-
github_token: ${{ github.token }}
3638
branch: 'main'

0 commit comments

Comments
 (0)