Skip to content

Commit

Permalink
ci: cancel-in-progress if PR (#19204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Dec 21, 2023
1 parent 02ad844 commit 6ea0e2d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-examples-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-flagship-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

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

jobs:
test-flagships:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pkg-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

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

env:
PUSH_NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:

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

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

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

defaults:
run:
Expand Down

0 comments on commit 6ea0e2d

Please sign in to comment.