Skip to content

Commit b972f39

Browse files
committed
♻️ Use GitHub concurrency instead of styfle/cancel-workflow-action
1 parent 067a746 commit b972f39

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/continuous_integration.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- master
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
12+
913
jobs:
1014

1115
continuous-integration:
@@ -25,12 +29,6 @@ jobs:
2529
fail-fast: false
2630

2731
steps:
28-
# Cancel previous runs of the same branch
29-
- name: cancel
30-
uses: styfle/cancel-workflow-action@0.10.0
31-
with:
32-
access_token: ${{ github.token }}
33-
3432
- name: "Checkout"
3533
uses: "actions/checkout@v3"
3634

@@ -58,4 +56,4 @@ jobs:
5856
run: |
5957
composer update ${{ matrix.install-args }} --no-interaction --no-progress --prefer-dist
6058
- name: "Run tests with phpunit/phpunit"
61-
run: "vendor/bin/phpunit"
59+
run: "vendor/bin/phpunit"

0 commit comments

Comments
 (0)