Skip to content

Commit a6acc1d

Browse files
nitins17Google-ML-Automation
authored andcommitted
Prevent cancellation of in-progress workflows on main branch
Update `cancel-in-progress` concurrency settings in `ci-build.yaml` and `jax-array-api.yml` to avoid canceling runs triggered on the `main` branch. PiperOrigin-RevId: 830665137
1 parent 508122e commit a6acc1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci-build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
permissions: {}
1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
16-
cancel-in-progress: true
16+
# Don't cancel in-progress jobs for main branches.
17+
cancel-in-progress: ${{ github.ref != 'main' }}
1718

1819
env:
1920
UV_DEFAULT_INDEX: "https://us-python.pkg.dev/ml-oss-artifacts-published/pypi-mirror/simple"

.github/workflows/jax-array-api.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
13-
cancel-in-progress: true
13+
# Don't cancel in-progress jobs for main branches.
14+
cancel-in-progress: ${{ github.ref != 'main' }}
1415
permissions: {}
1516

1617
env:

0 commit comments

Comments
 (0)