ci(alpha): avoid race by cancel non-latest concurrent runs (#1213)

This commit is contained in:
Sukka 2024-06-16 01:10:30 +08:00 committed by GitHub
parent 44dc7fe24a
commit 6cdf199531

View File

@ -9,6 +9,10 @@ permissions: write-all
env: env:
CARGO_INCREMENTAL: 0 CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short RUST_BACKTRACE: short
concurrency:
# only allow per workflow per commit (and not pr) to run at a time
group: "${{ github.workflow }} - ${{ github.head_ref || github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs: jobs:
alpha: alpha: