Fix release workflow tag trigger pattern (#2651)
This commit is contained in:
1 parent
2270e208d2
commit
7d424fd52e
1 file changed
+3
-3
@@ -4,7 +4,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "jq-*"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -222,7 +222,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
needs: [linux, macos, windows, dist]
|
needs: [linux, macos, windows, dist]
|
||||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
if: startsWith(github.event.ref, 'refs/tags/jq-')
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -241,5 +241,5 @@ jobs:
|
|||||||
cp artifacts/jq-windows-windows-2022-gcc/jq.exe release/jq-windows-amd64.exe
|
cp artifacts/jq-windows-windows-2022-gcc/jq.exe release/jq-windows-amd64.exe
|
||||||
cp artifacts/jq-dist/jq-* release/
|
cp artifacts/jq-dist/jq-* release/
|
||||||
|
|
||||||
gh release create $TAG_NAME --draft --title "jq ${TAG_NAME#v}" --generate-notes
|
gh release create $TAG_NAME --draft --title "jq ${TAG_NAME#jq-}" --generate-notes
|
||||||
gh release upload $TAG_NAME --clobber release/jq-*
|
gh release upload $TAG_NAME --clobber release/jq-*
|
||||||
Reference in new issue
Block a user