Skip to content

Commit 89bacac

Browse files
committed
[CI] Only cancel in-progress builds for pull requests, not main branch
1 parent 4cc41f4 commit 89bacac

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

.github/workflows/archery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ env:
4444

4545
concurrency:
4646
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
47-
cancel-in-progress: true
47+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
4848

4949
permissions:
5050
contents: read

.github/workflows/cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ on:
6060

6161
concurrency:
6262
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
63-
cancel-in-progress: true
63+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
6464

6565
permissions:
6666
contents: read

.github/workflows/cpp_extra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ on:
7272
7373
concurrency:
7474
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
75-
cancel-in-progress: true
75+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7676

7777
permissions:
7878
contents: read

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on:
2929

3030
concurrency:
3131
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
32-
cancel-in-progress: true
32+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3333

3434
permissions:
3535
contents: read

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ on:
4646

4747
concurrency:
4848
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
49-
cancel-in-progress: true
49+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
5050

5151
permissions:
5252
contents: read

.github/workflows/matlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ on:
3838

3939
concurrency:
4040
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
41-
cancel-in-progress: true
41+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
4242

4343
permissions:
4444
contents: read

.github/workflows/package_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ on:
5858

5959
concurrency:
6060
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
61-
cancel-in-progress: true
61+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
6262

6363
permissions:
6464
# Upload to GitHub Release

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on:
4242

4343
concurrency:
4444
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
45-
cancel-in-progress: true
45+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
4646

4747
permissions:
4848
contents: read

.github/workflows/r.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on:
5252

5353
concurrency:
5454
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
55-
cancel-in-progress: true
55+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
5656

5757
permissions:
5858
contents: read

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ on:
5656

5757
concurrency:
5858
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
59-
cancel-in-progress: true
59+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
6060

6161
permissions:
6262
contents: read

0 commit comments

Comments
 (0)