Add "Update parsers workflow"

This commit is contained in:
Stephan Seitz 2020-11-29 13:18:03 +01:00 committed by Thomas Vigouroux
parent b3a3403e25
commit e8788c52e5

28
.github/workflows/update-parsers-pr.yml vendored Normal file
View 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