Fix release job to create a pull request for signatures
This commit is contained in:
1 parent
4160a36fb5
commit
72f147e82e
1 file changed
+3
-1
@@ -357,6 +357,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
environment: release
|
environment: release
|
||||||
needs: [linux, macos, windows, dist, docker]
|
needs: [linux, macos, windows, dist, docker]
|
||||||
if: startsWith(github.ref, 'refs/tags/jq-')
|
if: startsWith(github.ref, 'refs/tags/jq-')
|
||||||
@@ -381,6 +382,7 @@ jobs:
|
|||||||
- name: Update signatures
|
- name: Update signatures
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ github.ref_name }}
|
TAG_NAME: ${{ github.ref_name }}
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
sig_dir="sig/v${TAG_NAME#jq-}"
|
sig_dir="sig/v${TAG_NAME#jq-}"
|
||||||
mkdir -p "$sig_dir"
|
mkdir -p "$sig_dir"
|
||||||
@@ -392,4 +394,4 @@ jobs:
|
|||||||
git config user.name 'github-actions[bot]'
|
git config user.name 'github-actions[bot]'
|
||||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
git commit -m "Update signatures of ${TAG_NAME#jq-}"
|
git commit -m "Update signatures of ${TAG_NAME#jq-}"
|
||||||
git push origin HEAD:master
|
gh pr create --title "Update signatures of ${TAG_NAME#jq-}"
|
||||||
Reference in new issue
Block a user