-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 948 Bytes
/
vimdoc.yml
File metadata and controls
37 lines (33 loc) · 948 Bytes
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
name: Generate Vimdoc
on:
push:
branches: [ main ]
paths:
- 'README.md'
- 'lua/**'
permissions:
contents: write
jobs:
vimdoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Vimdoc
uses: kdheepak/panvimdoc@v4.0.1
with:
vimdoc: multiple-cursor
description: "Lightweight multiple-cursor plugin for Neovim"
pandoc: "README.md"
toc: true
treesitter: true
- name: Commit generated docs
run: |
if [[ -n "$(git status --porcelain)" ]]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add doc/
git commit -m "docs: update vimdoc [skip ci]"
git push
fi