Skip to content

Commit 19dcdf6

Browse files
committed
chore: fix concurrency config
1 parent f27b47a commit 19dcdf6

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/CI.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ env:
2222
merge_group:
2323

2424
concurrency:
25-
group: ${{ github.workflow }}-${{ github.ref }}
26-
cancel-in-progress: true
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
26+
cancel-in-progress: ${{ github.ref_name != 'main' }}
27+
2728
jobs:
2829
lint:
2930
permissions:

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
- docs/**
1717

1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
20-
cancel-in-progress: true
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
20+
cancel-in-progress: ${{ github.ref_name != 'main' }}
2121

2222
jobs:
2323
benchmark:

.github/workflows/codspeed.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ permissions:
1111
contents: read
1212
id-token: write
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
16+
cancel-in-progress: ${{ github.ref_name != 'main' }}
17+
1418
jobs:
1519
codspeed:
1620
name: Run benchmarks

.github/workflows/size-compare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
- docs/**
1717

1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
20-
cancel-in-progress: true
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
20+
cancel-in-progress: ${{ github.ref_name != 'main' }}
2121

2222
jobs:
2323
build-pr:

0 commit comments

Comments
 (0)