Skip to content

Commit bf181ac

Browse files
committed
bench: cancel current job on new commits
1 parent d503153 commit bf181ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Benchmark
22
on:
33
pull_request_target:
44
branches: [ main ]
5+
concurrency:
6+
# Skip intermediate builds: always.
7+
# Cancel intermediate builds: only if it is a pull request build.
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
510
permissions:
611
pull-requests: write # needed to post comments
712
jobs:

0 commit comments

Comments
 (0)