-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.44 KB
/
docs.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
45
name: autogen-docs
on:
push:
branches: [master]
pull_request:
jobs:
docs:
runs-on: ubuntu-latest
name: generate docs
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- if: github.event_name == 'pull_request'
run: git fetch --no-tags --depth=1 origin master
- name: panvimdoc
uses: kdheepak/panvimdoc@v4.0.0
with:
vimdoc: neotest-busted
pandoc: "README.md"
version: "NVIM >= v0.9.0"
toc: true
description: "Neotest adapter for running tests using busted with neovim as the lua interpreter."
demojify: false
dedupsubheadings: true
treesitter: true
ignorerawblocks: true
docmapping: false
docmappingprojectname: true
shiftheadinglevelby: 0
incrementheadinglevelby: 0
- name: preview changes
if: github.event_name == 'pull_request'
run: git diff --color=always origin/master -- "doc/neotest-busted.txt"
- uses: stefanzweifel/git-auto-commit-action@v4
if: github.ref == 'refs/heads/master'
with:
commit_message: "Auto-generate docs"
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>"