mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
Pretty print lockfile.json
This commit is contained in:
parent
3b3c0098a6
commit
740f36b81d
2 changed files with 126 additions and 40 deletions
4
.github/workflows/update-parsers-pr.yml
vendored
4
.github/workflows/update-parsers-pr.yml
vendored
|
|
@ -18,6 +18,7 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update
|
||||
sudo add-apt-repository universe
|
||||
sudo apt-get install -y 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
|
||||
|
|
@ -26,6 +27,9 @@ jobs:
|
|||
- name: Update parsers
|
||||
run: |
|
||||
./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
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue