Cancel outdated in-progress workflow automatically (#1652)

This commit is contained in:
messense 2023-01-05 11:03:26 +08:00 committed by GitHub
parent fb8024a6ac
commit 6a1edeb694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10