feat: Add github action for docgen
This commit is contained in:
30
.github/workflows/docgen.yml
vendored
Normal file
30
.github/workflows/docgen.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: docgen
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
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)
|
||||
2
Makefile
Normal file
2
Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
docs:
|
||||
md2vim -desc "*neogen* *neogen.nvim*\n* NOTE: This file is autogenerated from docs/DOCS.md file" docs/DOCS.md doc/neogen.txt
|
||||
1
docs/DOCS.md
Normal file
1
docs/DOCS.md
Normal file
@@ -0,0 +1 @@
|
||||
salut
|
||||
Reference in New Issue
Block a user