Skip to content

Commit 76ff11f

Browse files
committed
♻️ Use GitHub concurrency instead of styfle/cancel-workflow-action
1 parent 2323327 commit 76ff11f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/test.yaml

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

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
11+
812
jobs:
913
test:
1014
runs-on: ubuntu-latest
@@ -15,12 +19,6 @@ jobs:
1519
php-version: ['8.1', '8.2', '8.3', '8.4']
1620
fail-fast: false
1721
steps:
18-
# Cancel previous runs of the same branch
19-
- name: cancel
20-
uses: styfle/cancel-workflow-action@0.12.1
21-
with:
22-
access_token: ${{ github.token }}
23-
2422
- name: checkout
2523
uses: actions/checkout@v6
2624

0 commit comments

Comments
 (0)