aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-10-15 21:46:00 -0700
committerGitHub <noreply@github.com>2021-10-15 21:46:00 -0700
commit4d83a75ca109491f7d9e5ffc130091e931323ca3 (patch)
tree7675be5ad9e5bb503127602dfac058d6537e5202
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.tar
nvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.tar.gz
nvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.tar.bz2
nvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.tar.lz
nvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.tar.xz
nvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.tar.zst
nvim-lspconfig-4d83a75ca109491f7d9e5ffc130091e931323ca3.zip
ci: fix vimdocgen (#1313)
* update neovim path * rename commits to align with conventional commits in core * make runs sequential to avoid conflicts when pushing * pull latest changes in vimdocgen run
-rw-r--r--.github/workflows/docgen.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml
index 8ff59124..0415ed53 100644
--- a/.github/workflows/docgen.yml
+++ b/.github/workflows/docgen.yml
@@ -22,7 +22,7 @@ jobs:
- name: Commit changes
env:
COMMIT_MSG: |
- [docgen] Update CONFIG.md
+ docs: update CONFIG.md
skip-checks: true
run: |
git config user.name github-actions
@@ -51,22 +51,23 @@ jobs:
- name: Build parser
run: |
export PACKPATH=$HOME/.local/share/nvim/site
- ./build/nvim -u ~/.local/share/nvim/site/pack/vendor/start/babelfish.nvim/scripts/init.lua --headless -c 'TSInstallSync markdown' -c 'qa'
+ nvim -u ~/.local/share/nvim/site/pack/vendor/start/babelfish.nvim/scripts/init.lua --headless -c 'TSInstallSync markdown' -c 'qa'
- name: Generating docs
run: |
export PATH="${PWD}/build/:${PATH}"
export PACKPATH=$HOME/.local/share/nvim/site
- ./build/nvim -u ~/.local/share/nvim/site/pack/vendor/start/babelfish.nvim/scripts/init.lua --headless -c 'luafile ./scripts/vimdocgen.lua' -c 'qa'
+ nvim -u ~/.local/share/nvim/site/pack/vendor/start/babelfish.nvim/scripts/init.lua --headless -c 'luafile ./scripts/vimdocgen.lua' -c 'qa'
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MSG: |
- [docgen] Update README.md
+ docs: update README.md
skip-checks: true
run: |
git config user.email "actions@github"
git config user.name "Github Actions"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
+ git pull
git add doc/lspconfig.txt
# Only commit and push if we have changes
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})