aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2026-03-13 19:37:06 +0800
committerYi Ming <ofseed@foxmail.com>2026-03-13 23:36:10 +0800
commit6b05a26b30a2c121b63cc8faae84ac2663e2a40e (patch)
tree249fd129ac4f56e06a74d464f845df282f0717a0 /.github/workflows
parentfix: sanitize invalid schema keys in type names (diff)
downloadnvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.tar
nvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.tar.gz
nvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.tar.bz2
nvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.tar.lz
nvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.tar.xz
nvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.tar.zst
nvim-lspconfig-6b05a26b30a2c121b63cc8faae84ac2663e2a40e.zip
ci: auto-generate annotations
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/gen-annotations.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/gen-annotations.yml b/.github/workflows/gen-annotations.yml
new file mode 100644
index 00000000..13c5fdfc
--- /dev/null
+++ b/.github/workflows/gen-annotations.yml
@@ -0,0 +1,40 @@
+name: gen-annotations
+
+on:
+ push:
+ paths:
+ - lsp/**
+ - scripts/gen_json_schemas.lua
+ - scripts/gen_annotations.lua
+ - .github/workflows/gen-annotations.yml
+ workflow_dispatch:
+
+jobs:
+ gen-annotations:
+ if: github.actor != 'github-actions[bot]'
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v6
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ version: nightly
+ - name: Generate JSON schemas
+ run: |
+ nvim -l scripts/gen_json_schemas.lua
+ - name: Generate annotations
+ run: |
+ nvim -l scripts/gen_annotations.lua
+ - name: Commit generated files
+ env:
+ COMMIT_MSG: |
+ chore: update generated annotations
+ skip-checks: true
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+ git add README.md
+ git add -A lua/lspconfig/types
+ git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push)