Skip to content

Commit 56b8eef

Browse files
[CI][Bench] Add concurrency group
to cancel in progress PRs (and repeated dispatches).
1 parent b8a3979 commit 56b8eef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/sycl-ur-perf-benchmarking.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ on:
7878
- 'level_zero:gpu'
7979
- 'level_zero_v2:gpu'
8080

81+
concurrency:
82+
# Cancel a currently running workflow from the same PR and dispatch (only if pr_no or commit_hash is repeated).
83+
# Scheduled runs will only be affected if they overlap.
84+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || inputs.pr_no || inputs.commit_hash || github.ref }}
85+
cancel-in-progress: true
86+
8187
permissions: read-all
8288

8389
jobs:

0 commit comments

Comments
 (0)