ci: cancel the previous build when a new commit lands (#34733)

This commit is contained in:
Yihau Chen 2024-01-11 02:33:39 +08:00 committed by GitHub
parent dc5af2c615
commit 74df203dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,10 @@ on:
type: string
default: "master"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
SHELL: /bin/bash
SCCACHE_GHA_ENABLED: "true"

View File

@ -26,6 +26,10 @@ on:
type: string
default: "master"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
SHELL: /bin/bash
SCCACHE_GHA_ENABLED: "true"