Skip to content

Commit e81b63a

Browse files
committed
Run publish-snapshot/release also for workflow_dispatch
1 parent 08fe297 commit e81b63a

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
@@ -21,7 +21,7 @@ jobs:
2121
# only run in the official pmd/pmd-designer repo, where we have access to the secrets and not on forks
2222
# and only run for _successful_ push workflow runs on tags.
2323
if: ${{ github.repository == 'pmd/designer'
24-
&& github.event.workflow_run.event == 'push'
24+
&& contains(fromJSON('["push", "workflow_dispatch"]'), github.event.workflow_run.event)
2525
&& github.event.workflow_run.head_branch != 'main'
2626
&& github.event.workflow_run.conclusion == 'success' }}
2727
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/pmd-designer 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/pmd-designer'
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)