ci: prevent unnecessary panvimdoc runs

remotes/origin/HEAD
Chris Grieser 2024-06-01 17:03:47 +02:00
parent 6c3a123dcd
commit fe50fe3844
1 changed files with 14 additions and 10 deletions

View File

@ -1,22 +1,26 @@
name: panvimdoc
name: Auto-generate vimdocs
# yamllint disable rule:truthy
on: [push]
on:
push:
branches: [main]
paths: [README.md]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
name: pandoc to vimdoc
name: README.md to vimdoc
steps:
- uses: actions/checkout@v2
- name: panvimdoc
uses: kdheepak/panvimdoc@main
- uses: actions/checkout@v4
- uses: kdheepak/panvimdoc@main
with:
vimdoc: genghis
demojify: true
toc: true
toc: true
treesitter: true
demojify: true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: Auto generate docs"
commit_message: "chore: Auto-generate vimdocs"
branch: ${{ github.head_ref }}