ci: cancel in progress runs on new push (#620)

This commit is contained in:
Bert
2023-11-01 11:33:48 -04:00
committed by Weston Pace
parent cd7a4dd251
commit 4e9aab9e8b
3 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ on:
- rust/**
- .github/workflows/rust.yml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# This env var is used by Swatinem/rust-cache@v2 for the cache
# key, so we set it to make sure it is always consistent.