Skip to content

Commit

Permalink
Fix release workflow tag trigger pattern (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny authored Jul 4, 2023
1 parent 2270e20 commit 7d424fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
tags:
- "v*"
- "jq-*"
pull_request:

jobs:
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
permissions:
contents: write
needs: [linux, macos, windows, dist]
if: startsWith(github.event.ref, 'refs/tags/v')
if: startsWith(github.event.ref, 'refs/tags/jq-')
steps:
- name: Clone repository
uses: actions/checkout@v3
Expand All @@ -241,5 +241,5 @@ jobs:
cp artifacts/jq-windows-windows-2022-gcc/jq.exe release/jq-windows-amd64.exe
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-*

0 comments on commit 7d424fd

Please sign in to comment.