mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
ci: rules api docs from wiki
This commit is contained in:
parent
f104b9bf84
commit
4f8f8778f1
1
.github/generated-files-bot.yml
vendored
1
.github/generated-files-bot.yml
vendored
@ -1,5 +1,6 @@
|
||||
generatedFiles:
|
||||
- path: "doc/nvim-autopairs.txt"
|
||||
- path: "doc/nvim-autopairs-rules.txt"
|
||||
message: "`nvim-autopairs.txt` is generated from README.md. Make changes there instead."
|
||||
ignoreAuthors:
|
||||
- 'github-actions[bot]'
|
||||
|
13
.github/workflows/docs.yml
vendored
13
.github/workflows/docs.yml
vendored
@ -6,7 +6,6 @@ on:
|
||||
- README.md
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
@ -30,10 +29,22 @@ jobs:
|
||||
with:
|
||||
vimdoc: nvim-autopairs
|
||||
description: A super powerful autopair for Neovim.
|
||||
- name: clone rules api docs
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/windwp/nvim-autopairs.wiki.git ../nvim-autopairs.wiki
|
||||
cp ../nvim-autopairs.wiki/Rules-API.md ./Rules-API.md
|
||||
- name: panvimdoc
|
||||
uses: kdheepak/panvimdoc@v2.7.1
|
||||
with:
|
||||
vimdoc: nvim-autopairs-rules
|
||||
description: nvim-autopairs rules
|
||||
pandoc: "Rules-API.md"
|
||||
toc: true
|
||||
- name: Create PR
|
||||
run: |
|
||||
if ! [[ -z $(git status -s) ]]; then
|
||||
git add doc/nvim-autopairs.txt
|
||||
git add doc/nvim-autopairs-rules.txt
|
||||
git commit -m "chore: generated vimdoc"
|
||||
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH}
|
||||
gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true
|
||||
|
Loading…
Reference in New Issue
Block a user