Skip to content
Myr

Fix release job to create a pull request for signatures

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by Nico Williams · parent 4160a36 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:.github/workflows/ci.yml+3 added-1 removed
355 unmodified lines
356 release:357 runs-on: ubuntu-latest358 permissions:359 contents: write360 pull-requests: write361 environment: release362 needs: [linux, macos, windows, dist, docker]363 if: startsWith(github.ref, 'refs/tags/jq-')364 steps:
16 unmodified lines
381 passphrase: ${{ secrets.JQ_RELEASE_GPG_PASSPHRASE }}382 - name: Update signatures383 env:384 TAG_NAME: ${{ github.ref_name }}385 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}386 run: |387 sig_dir="sig/v${TAG_NAME#jq-}"388 mkdir -p "$sig_dir"389 mv sha256sum.txt "$sig_dir"
3 unmodified lines
393 git add sig394 git config user.name 'github-actions[bot]'395 git config user.email 'github-actions[bot]@users.noreply.github.com'396 git commit -m "Update signatures of ${TAG_NAME#jq-}"395 git push origin HEAD:master397 gh pr create --title "Update signatures of ${TAG_NAME#jq-}"