Skip to content

Commit 19a6131

Browse files
authored
[CI] Cancel postcommit jobs on new commit (#14606)
You can see it seems to work [here](https://github.com/intel/llvm/actions/runs/9980873784). Example: ``` build-win / Build + LIT Canceling since a higher priority waiting request for 'SYCL Post Commit-14606' exists ``` --------- Signed-off-by: Sarnie, Nick <[email protected]>
1 parent a7d8281 commit 19a6131

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/sycl-post-commit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- ./devops/actions/cleanup
2020
- ./devops/actions/cached_checkout
2121

22+
concurrency:
23+
# Cancel a currently running workflow from the same PR or commit hash.
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
25+
cancel-in-progress: true
26+
2227
permissions: read-all
2328

2429
jobs:

0 commit comments

Comments
 (0)