Files
neogen/.github/workflows/docgen.yml
2022-01-11 15:02:44 +01:00

31 lines
796 B
YAML

name: docgen
on:
push:
branches:
- main
jobs:
docgen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.17.1'
- name: Install md2vim
run: go get github.com/FooSoft/md2vim
- name: Generate vim docs
run: make docs
- name: Commit changes
env:
COMMIT_MSG: |
[docgen] Update doc/neogen.txt
skip-checks: true
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add doc/neogen.txt
# Only commit and push if we have changes
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push)