diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-12-14 22:56:43 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2022-12-15 10:03:04 +0100 |
| commit | 818fb3b96b875e46417bb8f9bb412450f2617b66 (patch) | |
| tree | 51851b9d440ea3629fa52d660cd7d034bb2fd6af /.github/workflows | |
| parent | Update lockfile.json (#3976) (diff) | |
| download | nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.tar nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.tar.gz nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.tar.bz2 nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.tar.lz nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.tar.xz nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.tar.zst nvim-treesitter-818fb3b96b875e46417bb8f9bb412450f2617b66.zip | |
ci: Add name of updated parsers to commit message
Fixes #3962
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/update-lockfile.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml index c3ea4515c..de70b5704 100644 --- a/.github/workflows/update-lockfile.yml +++ b/.github/workflows/update-lockfile.yml @@ -24,6 +24,9 @@ jobs: 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/josephburnett/jd/releases/download/v1.6.1/jd-amd64-linux + mv ./jd-amd64-linux /tmp/jd + chmod +x /tmp/jd sudo apt install libfuse2 wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage chmod u+x nvim.appimage @@ -34,6 +37,7 @@ jobs: env: SKIP_LOCKFILE_UPDATE_FOR_LANGS: verilog,gleam,nix run: | + cp lockfile.json /tmp/old_lockfile.json ./nvim.appimage --headless -c "luafile ./scripts/write-lockfile.lua" -c "q" # Pretty print cp lockfile.json /tmp/lockfile.json @@ -44,14 +48,15 @@ jobs: git config user.name "GitHub" git config user.email "noreply@github.com" git add lockfile.json - git commit -m "Update lockfile.json" || echo 'No commit necessary!' + UPDATED_PARSERS=$(echo $(/tmp/jd -set /tmp/old_lockfile.json lockfile.json | grep @ | sed 's/","revision"\]//' | sed 's/@ \["//') | sed 's/ /, /g') + echo "UPDATED_PARSERS=$UPDATED_PARSERS" >> $GITHUB_ENV + git commit -m "Update parsers: $UPDATED_PARSERS" || echo 'No commit necessary!' git clean -xf - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: - commit-message: Update lockfile.json - title: Update lockfile.json + title: "Update lockfile.json: ${{ env.UPDATED_PARSERS }}" branch: update-lockfile-pr base: ${{ github.head_ref }} draft: true |
