Skip to content

Commit 6ea0e2d

Browse files
authored
ci: cancel-in-progress if PR (#19204)
1 parent 02ad844 commit 6ea0e2d

12 files changed

+12
-12
lines changed

.github/workflows/ci-examples-app.yml

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

2424
concurrency:
2525
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
26-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2727

2828
defaults:
2929
run:

.github/workflows/ci-flagship-apps.yml

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

1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
21-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
21+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2222

2323
jobs:
2424
test-flagships:

.github/workflows/ci-pkg-install.yml

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

2525
concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
27-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
27+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2828

2929
defaults:
3030
run:

.github/workflows/ci-tests-app.yml

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

2626
concurrency:
2727
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
28-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
28+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2929

3030
defaults:
3131
run:

.github/workflows/ci-tests-data.yml

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

2525
concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
27-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
27+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2828

2929
defaults:
3030
run:

.github/workflows/ci-tests-fabric.yml

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

2626
concurrency:
2727
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
28-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
28+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2929

3030
defaults:
3131
run:

.github/workflows/ci-tests-pytorch.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.workflow }}-${{ github.ref }}-${{ github.head_ref }}
32-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
32+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3333

3434
defaults:
3535
run:

.github/workflows/ci-tests-store.yml

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

2525
concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
27-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
27+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2828

2929
defaults:
3030
run:

.github/workflows/code-checks.yml

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

1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
21-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
21+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2222

2323
defaults:
2424
run:

.github/workflows/docker-build.yml

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

2626
concurrency:
2727
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.event_name }}
28-
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
28+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2929

3030
env:
3131
PUSH_NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}

0 commit comments

Comments
 (0)