-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] use native concurrency to cancel previous CI runs
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,13 @@ on: | |
env: | ||
VERBOSE: ${{ github.events.input.verbose }} | ||
|
||
# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is | ||
# triggered (ref https://stackoverflow.com/a/72408109) | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cancel_previous_runs: | ||
name: Cancel Previous Runs | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_primary_binaries: | ||
name: Primary build ${{ matrix.binary }} for ${{ matrix.rust-target }} on (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
|