Skip to content

Commit 10cb84c

Browse files
committed
ci: cancel previous runs on further pushes
The idea here is to cancel all runs that are in progress, when a new push to a branch happens. Typically, a pipeline is invalid as soon as changes are merged. A new pipeline will start anyway. To save computing time, and to prevent users from many expected "pipeline has failed" messages, this is beneficial. The impact is especially visible if you do frequent pushes in a short period of time. More info: https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
1 parent e508cd9 commit 10cb84c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- cron: '0 0 * * 0-6'
1414
env:
1515
RUSTFLAGS: -D warnings
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
1619
jobs:
1720
test_aarch64:
1821
name: Integration Test (AArch64)

0 commit comments

Comments
 (0)