aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/update-lockfile.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/update-lockfile.yml')
-rw-r--r--.github/workflows/update-lockfile.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml
index 992e1c0d2..70d2c0c0a 100644
--- a/.github/workflows/update-lockfile.yml
+++ b/.github/workflows/update-lockfile.yml
@@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
- ref: master
+ ref: main
- uses: actions/create-github-app-token@v2
id: app-token
@@ -34,10 +34,7 @@ jobs:
SKIP_LOCKFILE_UPDATE_FOR_LANGS: "bp,devicetree,dhall,elm,enforce,git_config,nickel,rescript,rust,slint,sql,t32,templ,typespec,verilog,wit"
run: |
cp lockfile.json /tmp/old_lockfile.json
- nvim -l scripts/write-lockfile.lua
- # Pretty print
- cp lockfile.json /tmp/lockfile.json
- cat /tmp/lockfile.json | jq --sort-keys > lockfile.json
+ nvim -l ./scripts/update-lockfile.lua
UPDATED_PARSERS=$(/tmp/jd -f merge /tmp/old_lockfile.json lockfile.json | jq -r 'keys | join(", ")')
echo "UPDATED_PARSERS=$UPDATED_PARSERS" >> $GITHUB_ENV