Skip to content

Commit

Permalink
ci: Cancel previous workflow runs when new commits are pushed
Browse files Browse the repository at this point in the history
Introduces pointless bloat to the CI, and might delay newer runs if a
lot of branches are being built.

There's no value in finishing the previous runs.
  • Loading branch information
theduke committed Mar 30, 2023
1 parent 4ccbc4b commit 257db95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
inputs:
release:
description: 'Make release'

# Automatically cancel previous workflow runs when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
RUST_BACKTRACE: 1

Expand Down

0 comments on commit 257db95

Please sign in to comment.