Skip to content

Commit 5d95220

Browse files
committed
allow manual trigger, cancel on multiple pushes
1 parent ba4ea77 commit 5d95220

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/linting-php.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ name: Linting PHP
44
on:
55
- push
66
- pull_request
7+
# Allow manually triggering the workflow.
8+
- workflow_dispatch
79

10+
# Cancels all previous workflow runs for the same branch that have not yet completed.
11+
concurrency:
12+
# The concurrency group contains the workflow name and the branch name.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
816
jobs:
917
lint-php:
1018
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)