-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.2 KB
/
panvimdoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Auto-generate Vimdoc using Pandoc in CI
on:
pull_request:
branches: ["main"]
paths:
- README.md
- .github/**
# Set permissions of the GITHUB_TOKEN to allow modifications to files
permissions:
contents: write
# Allow one concurrent deployment
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: false
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create a headless README
run: tail --lines=+7 README.md > doc/headless-readme.md
- name: Generate docs
uses: kdheepak/panvimdoc@main
with:
vimdoc: tact
pandoc: doc/headless-readme.md
version: "Vim 8+ and Neovim >= 0.10.0"
demojify: true
treesitter: true
- name: Push updated doc
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: auto-generate vimdoc via panvimdoc"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
branch: ${{ github.head_ref }}