Skip to content

Commit

Permalink
GH Actions: allow for manually triggering a workflow
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
jrfnl committed Nov 11, 2021
1 parent 2e6beca commit 843d7cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: PHP Quality Assurance
on: [push]
on:
push:
# Allow manually triggering the workflow.
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
Expand Down

0 comments on commit 843d7cd

Please sign in to comment.