Skip to content

Commit f1398ba

Browse files
committed
ci: cancel stale Go Tests runs on force-push
Add concurrency group to the Go Tests workflow so that a new push to the same branch (or PR update) automatically cancels any in-progress run for the previous commit. Without this, force-pushing a PR branch accumulates multiple parallel Go Tests runs that hold runners and produce stale results. Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
1 parent 7160f49 commit f1398ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/go-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on: # yamllint disable-line rule:truthy
2222
- '**/*.md'
2323
- '.github/**'
2424

25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: true
28+
2529
jobs:
2630
test:
2731
runs-on: jumbo

0 commit comments

Comments
 (0)