Skip to content

Commit 4f2b917

Browse files
committed
fix: ensure only a correct GH release triggers workflows on this branch
1 parent bd4b4f2 commit 4f2b917

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release-images.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919

2020
jobs:
2121
release-images:
22-
if: github.repository_owner == 'Apicurio'
22+
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '2.5.'))
2323
runs-on: ubuntu-20.04
2424
timeout-minutes: 120
2525
env:

.github/workflows/update-website.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
update-website:
9-
if: github.repository_owner == 'Apicurio'
9+
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '2.5.'))
1010
runs-on: ubuntu-20.04
1111
steps:
1212

0 commit comments

Comments
 (0)