chore: reduce the noise in generated doc #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=+6 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 }} |