GHA CI: cancel outdated in-progress workflow runs

This will only cancel outdated workflow runs on PR branches and won't affect other normal repo
branches.
PR #16511.
This commit is contained in:
Chocobo1 2022-02-25 13:34:28 +08:00 committed by GitHub
parent a21bff1dbd
commit 2652c73a4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 0 deletions

View file

@ -2,6 +2,10 @@ name: CI - File health
on: [pull_request, push] on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs: jobs:
ci: ci:
name: Check name: Check

View file

@ -1,6 +1,11 @@
name: CI - macOS name: CI - macOS
on: [pull_request, push] on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs: jobs:
ci: ci:
name: Build name: Build

View file

@ -1,6 +1,11 @@
name: CI - Ubuntu name: CI - Ubuntu
on: [pull_request, push] on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs: jobs:
ci: ci:
name: Build name: Build

View file

@ -2,6 +2,10 @@ name: CI - WebUI
on: [pull_request, push] on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs: jobs:
ci: ci:
name: Check name: Check

View file

@ -1,6 +1,11 @@
name: CI - Windows name: CI - Windows
on: [pull_request, push] on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.head_ref != '' }}
jobs: jobs:
ci: ci:
name: Build name: Build