Skip to content

Commit f592582

Browse files
[CI][Bench] Add concurrency group
to cancel in progress PRs (and repeated dispatches).
1 parent 066e266 commit f592582

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

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

81+
concurrency:
82+
# Cancel a currently running workflow for:
83+
# - the same PR
84+
# - manual dispatch if pr_no or commit_hash is repeated, and the runner & backend are the same
85+
# - scheduled runs if they overlap in time
86+
group: >-
87+
${{ github.workflow }}-${{ github.event_name }}-
88+
${{ github.event.pull_request.number || inputs.pr_no || inputs.commit_hash || github.ref }}-
89+
${{ inputs.runner }}-${{ inputs.backend }}
90+
cancel-in-progress: true
91+
8192
permissions: read-all
8293

8394
jobs:

0 commit comments

Comments
 (0)