Pretty print lockfile.json

This commit is contained in:
Stephan Seitz
2020-11-29 14:02:41 +01:00
committed by Thomas Vigouroux
parent 3b3c0098a6
commit 740f36b81d
2 changed files with 126 additions and 40 deletions

View File

@@ -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