Skip to content

Commit bc5759c

Browse files
authored
feat(ci): cancel in-progress PR workflows on new commit push (#5994)
this adds concurrency cancellation to pull_request workflows so that pushing a new commit to a PR automatically cancels any still-running workflow from the previous commit 99% of the time if you push a new commit you don't care about the previous workflow if its still running **we already do this for all sentry+getsentry pull_request workflows** we (devinfra) can't measure this yet but this would greatly help decrease org-wide runner queue pressure!
1 parent a2a15f1 commit bc5759c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88

99
pull_request:
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
permissions:
1216
contents: read
1317

0 commit comments

Comments
 (0)