Skip to content

Commit da51377

Browse files
committed
Fix release workflows to work with manual triggers
1 parent e39c1da commit da51377

5 files changed

+5
-5
lines changed

.github/workflows/release-images.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

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

.github/workflows/release-maven-artifacts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
release-maven:
21-
if: github.repository_owner == 'Apicurio' && startsWith(github.event.release.tag_name, '3.')
21+
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '3.'))
2222
runs-on: ubuntu-20.04
2323
timeout-minutes: 30
2424
env:

.github/workflows/release-sdk-go.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
release-sdk:
21-
if: github.repository_owner == 'Apicurio' && startsWith(github.event.release.tag_name, '3.')
21+
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '3.'))
2222
runs-on: ubuntu-20.04
2323
timeout-minutes: 15
2424
env:

.github/workflows/release-sdk-python.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
release-sdk:
21-
if: github.repository_owner == 'Apicurio' && startsWith(github.event.release.tag_name, '3.')
21+
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '3.'))
2222
runs-on: ubuntu-20.04
2323
timeout-minutes: 15
2424
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' && startsWith(github.event.release.tag_name, '3.')
9+
if: github.repository_owner == 'Apicurio' && (github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '3.'))
1010
runs-on: ubuntu-20.04
1111
steps:
1212

0 commit comments

Comments
 (0)