ci: add vimdoc workflow

Tidy doesn't have any vim documentation. This
commit adds a workflow that automatically creates
a vimdoc from our readme, then commits it back to
the repo.
This commit is contained in:
McAuley Penney
2023-06-17 08:43:00 -07:00
parent 0f3213ef0a
commit e6fbcd2d25
3 changed files with 62 additions and 6 deletions

27
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: CI
on:
push:
paths:
- "README.md"
pull_request:
paths:
- "README.md"
jobs:
docs:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
name: pandoc markdown to vimdoc
steps:
- uses: actions/checkout@v3
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: tidy.nvim
version: "Neovim >= 0.9.0"
demojify: true
treesitter: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): auto-generate vimdoc"