Skip to content

Commit abb3c87

Browse files
committed
fix: resolve GitHub Actions permissions for auto-generated vimdoc
- Add contents: write permissions to docs workflow - Update checkout and git-auto-commit-action to latest versions - Fix 403 permission denied error when pushing vimdoc changes
1 parent f42202f commit abb3c87

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ name: docs
77
jobs:
88
docs:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1012
steps:
11-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
1216
- name: panvimdoc
1317
uses: kdheepak/panvimdoc@main
1418
with:
@@ -17,9 +21,6 @@ jobs:
1721
demojify: true
1822
treesitter: true
1923
- name: Push changes
20-
uses: stefanzweifel/git-auto-commit-action@v4
24+
uses: stefanzweifel/git-auto-commit-action@v5
2125
with:
2226
commit_message: "auto-generate vimdoc"
23-
commit_user_name: "github-actions[bot]"
24-
commit_user_email: "github-actions[bot]@users.noreply.github.com"
25-
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

0 commit comments

Comments
 (0)