Skip to content

Commit

Permalink
Fix release job to create a pull request for signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny authored and nicowilliams committed Jul 28, 2023
1 parent 4160a36 commit 72f147e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
environment: release
needs: [linux, macos, windows, dist, docker]
if: startsWith(github.ref, 'refs/tags/jq-')
Expand All @@ -381,6 +382,7 @@ jobs:
- name: Update signatures
env:
TAG_NAME: ${{ github.ref_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sig_dir="sig/v${TAG_NAME#jq-}"
mkdir -p "$sig_dir"
Expand All @@ -392,4 +394,4 @@ jobs:
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git commit -m "Update signatures of ${TAG_NAME#jq-}"
git push origin HEAD:master
gh pr create --title "Update signatures of ${TAG_NAME#jq-}"

0 comments on commit 72f147e

Please sign in to comment.