Skip to content

Commit 3e83656

Browse files
committed
feat(ci): update panvimdoc workflow
1 parent 908f1e2 commit 3e83656

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/panvimdoc.yml

+14-15
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@ name: panvimdoc
22

33
on:
44
push:
5-
pull_request:
5+
branches: [main]
6+
paths:
7+
- README.md
8+
- .github/workflows/panvimdoc.yml
9+
10+
permissions:
11+
contents: write
612

713
jobs:
814
docs:
915
runs-on: ubuntu-latest
10-
if: ${{ github.ref == 'refs/heads/main' }}
16+
name: pandoc to vimdoc
1117
steps:
12-
- uses: actions/checkout@v3
13-
- name: panvimdoc
14-
uses: kdheepak/panvimdoc@main
18+
- uses: actions/checkout@v4
19+
- uses: kdheepak/panvimdoc@main
1520
with:
16-
vimdoc: autoclose.nvim
17-
version: "Neovim >= 0.7.0"
18-
demojify: true
19-
treesitter: true
20-
- name: Push changes
21-
uses: stefanzweifel/git-auto-commit-action@v4
21+
vimdoc: ${{ github.event.repository.name }}
22+
- uses: stefanzweifel/git-auto-commit-action@v4
2223
with:
23-
commit_message: "chore(build): auto-generate vimdoc"
24-
commit_user_name: "github-actions[bot]"
25-
commit_user_email: "github-actions[bot]@users.noreply.github.com"
26-
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
24+
commit_message: "docs: auto-generate vimdoc"
25+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)