mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fixup jq
This commit is contained in:
parent
740f36b81d
commit
ab808e8495
2 changed files with 7 additions and 4 deletions
9
.github/workflows/update-parsers-pr.yml
vendored
9
.github/workflows/update-parsers-pr.yml
vendored
|
|
@ -12,13 +12,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: master
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo add-apt-repository universe
|
||||
sudo apt-get install -y jq
|
||||
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
||||
mv ./jq-linux64 /tmp/jq
|
||||
chmod +x /tmp/jq
|
||||
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
|
||||
|
|
@ -29,7 +31,7 @@ jobs:
|
|||
./nvim.appimage --headless -c "luafile ./scripts/write-lockfile.lua" -c "q"
|
||||
# Pretty print
|
||||
cp lockfile.json /tmp/lockfile.json
|
||||
cat /tmp/lockfile.json | jq --sort-keys > lockfile.json
|
||||
cat /tmp/lockfile.json | /tmp/jq --sort-keys > lockfile.json
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
|
|
@ -37,3 +39,4 @@ jobs:
|
|||
commit-message: Update lockfile.json
|
||||
title: Update lockfile.json
|
||||
branch: update-lockfile-pr
|
||||
base: ${{ github.head_ref }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue