Skip to content

Commit eaac534

Browse files
Move GitHub Action concurrency to the root rather than per job
1 parent c3794dd commit eaac534

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/phpunit-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
pull_request:
1111
branches: [ develop ]
1212

13+
# Cancel any in-progress runs of a workflow/branch if a new run is triggered,
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1419
jobs:
1520
# This workflow contains a single job called "build"
@@ -34,9 +39,6 @@ jobs:
3439
WP_ENV_PHP_VERSION: ${{ matrix.php }}
3540
WP_VERSION: ${{ matrix.wp_version }}
3641
WP_PHPUNIT_DEFAULT_VERSION: '6.6'
37-
concurrency:
38-
group: ${{ github.workflow }}-${{ github.ref }}
39-
cancel-in-progress: true
4042
# Steps represent a sequence of tasks that will be executed as part of the job
4143
steps:
4244
- name: Checkout repository

0 commit comments

Comments
 (0)