Skip to content

Commit 5ee08ea

Browse files
committed
GH Actions: allow for manually triggering a workflow
Triggering a workflow for a branch manually is not supported by default in GH Actions, but has to be explicitly allowed. This is useful if, for instance, an external action script or composer dependency has broken. Once a fix is available, failing builds for open PRs can be retriggered manually instead of having to be re-pushed to retrigger the workflow. Ref: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
1 parent a7b2b95 commit 5ee08ea

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/phpstan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
pull_request:
1010
paths-ignore:
1111
- '**.md'
12+
# Allow manually triggering the workflow.
13+
workflow_dispatch:
1214

1315
jobs:
1416
phpstan:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
pull_request:
1010
paths-ignore:
1111
- '**.md'
12+
# Allow manually triggering the workflow.
13+
workflow_dispatch:
1214

1315
jobs:
1416
test:

.github/workflows/validate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
pull_request:
1010
paths-ignore:
1111
- '**.md'
12+
# Allow manually triggering the workflow.
13+
workflow_dispatch:
1214

1315
jobs:
1416
checkxml:

0 commit comments

Comments
 (0)