Skip to content

Commit 72a09f8

Browse files
committed
[ci] publish-snapshot/release: run also for workflow_dispatch
1 parent 793aafa commit 72a09f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# only run in the official pmd/build-tools repo, where we have access to the secrets and not on forks
2020
# and only run for _successful_ push workflow runs on tags "releases/**".
2121
if: ${{ github.repository == 'pmd/build-tools'
22-
&& github.event.workflow_run.event == 'push'
22+
&& contains(fromJSON('["push", "workflow_dispatch"]'), github.event.workflow_run.event)
2323
&& startsWith(github.event.workflow_run.head_branch, 'releases/')
2424
&& github.event.workflow_run.conclusion == 'success' }}
2525
runs-on: ubuntu-latest

.github/workflows/publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# only run in the official pmd/build-tools repo, where we have access to the secrets and not on forks
2020
# and only run for _successful_ push workflow runs on branch "main".
2121
if: ${{ github.repository == 'pmd/build-tools'
22-
&& github.event.workflow_run.event == 'push'
22+
&& contains(fromJSON('["push", "workflow_dispatch", "schedule"]'), github.event.workflow_run.event)
2323
&& github.event.workflow_run.head_branch == 'main'
2424
&& github.event.workflow_run.conclusion == 'success' }}
2525
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)