Skip to content

Commit 9cb25e7

Browse files
committed
fix: concurrency settings in Playwright workflow
1 parent 8145e5d commit 9cb25e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ permissions:
1919
pull-requests: write
2020
actions: read
2121

22+
concurrency:
23+
group: playwright-${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}-${{ (github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite'))) && 'tests' || github.run_id }}
24+
cancel-in-progress: ${{ github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite')) }}
25+
2226
jobs:
2327
playwright-default:
2428
if: github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite'))
25-
concurrency:
26-
group: playwright-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}-${{ github.job }}
27-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2829
uses: ./.github/workflows/playwright-test.yml
2930
with:
3031
test-mode: 'default'
@@ -33,9 +34,6 @@ jobs:
3334

3435
playwright-file-based-execution:
3536
if: github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'run-tests') && (github.event.action != 'labeled' || github.event.label.name == 'run-tests' || github.event.label.name == 'multisite'))
36-
concurrency:
37-
group: playwright-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}-${{ github.job }}
38-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3937
uses: ./.github/workflows/playwright-test.yml
4038
with:
4139
test-mode: 'file-based-execution'

0 commit comments

Comments
 (0)