mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
Fix update-parsers workflow
This commit is contained in:
parent
e8788c52e5
commit
3b3c0098a6
1 changed files with 11 additions and 4 deletions
15
.github/workflows/update-parsers-pr.yml
vendored
15
.github/workflows/update-parsers-pr.yml
vendored
|
|
@ -1,14 +1,18 @@
|
||||||
name: Make Parser Update PR
|
name: Make Parser Update PR
|
||||||
|
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-parsers:
|
update-parsers:
|
||||||
name: Update parsers
|
name: Update parsers
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#if: github.ref == 'master'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -19,10 +23,13 @@ jobs:
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||||
ln -s $(pwd) ~/.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
|
- name: Update parsers
|
||||||
run: |
|
run: |
|
||||||
./nvim.appimage --headless -c "luafile ./scripts/write-lockfile.lua" -c "q"
|
./nvim.appimage --headless -c "luafile ./scripts/write-lockfile.lua" -c "q"
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
with:
|
||||||
|
commit-message: Update lockfile.json
|
||||||
|
title: Update lockfile.json
|
||||||
|
branch: update-lockfile-pr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue