Skip to content

Commit f7d0570

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 89f08a4 commit f7d0570

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/check-cs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- "*"
10+
# Allow manually triggering the workflow.
11+
workflow_dispatch:
1012

1113
jobs:
1214
fix-style:

.github/workflows/run-tests.yml

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

1315
jobs:
1416
php-tests:

0 commit comments

Comments
 (0)