Skip to content

Commit b206802

Browse files
committed
Cancel in-progress workflow runs on new commits
1 parent 782d3f5 commit b206802

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/backward-compatibility.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
permissions:
1919
contents: read
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
bc-checks:
2327
name: Backward Compatibility Check

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
permissions:
2424
contents: read
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
28+
cancel-in-progress: true
29+
2630
jobs:
2731
links:
2832
name: Check Links

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
permissions:
2222
contents: read
2323

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
26+
cancel-in-progress: true
27+
2428
jobs:
2529
phpstan:
2630
name: "PHPStan (PHP ${{ matrix.php }})"

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
permissions:
2222
contents: read
2323

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
26+
cancel-in-progress: true
27+
2428
jobs:
2529
tests:
2630
name: "PHP ${{ matrix.php }}, ${{ matrix.dependencies }} deps"

0 commit comments

Comments
 (0)