Skip to content

Commit 5c88703

Browse files
TST: auto-cancel any in-progress job on the same branch (#3)
1 parent 10b80ae commit 5c88703

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/idefix-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- master
77
pull_request:
88

9+
concurrency:
10+
# auto-cancel any concurrent job *in the same context*
11+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
12+
# see https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
916
env:
1017
TEST_OPTIONS: -DKokkos_ENABLE_CUDA=ON
1118

0 commit comments

Comments
 (0)