mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Add "Update parsers workflow"
This commit is contained in:
parent
b3a3403e25
commit
e8788c52e5
1 changed files with 28 additions and 0 deletions
28
.github/workflows/update-parsers-pr.yml
vendored
Normal file
28
.github/workflows/update-parsers-pr.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: Make Parser Update PR
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
update-parsers:
|
||||
name: Update parsers
|
||||
runs-on: ubuntu-latest
|
||||
#if: github.ref == 'master'
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo add-apt-repository universe
|
||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
||||
chmod u+x nvim.appimage
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
|
||||
# inspired by nvim-lspconfigs
|
||||
- name: Update parsers
|
||||
run: |
|
||||
./nvim.appimage --headless -c "luafile ./scripts/write-lockfile.lua" -c "q"
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
Loading…
Add table
Add a link
Reference in a new issue