Skip to content

Commit

Permalink
fix: ensure only a correct GH release triggers workflows on this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenko committed Jun 25, 2024
1 parent e5ea8f7 commit 244c1e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
release-images:
if: github.repository_owner == 'Apicurio'
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '2.6.'))
runs-on: ubuntu-20.04
timeout-minutes: 120
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
update-website:
if: github.repository_owner == 'Apicurio'
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '2.6.'))
runs-on: ubuntu-20.04
steps:

Expand Down

0 comments on commit 244c1e2

Please sign in to comment.