mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-01 20:32:20 +00:00
CI: add concurrency limits for pr test
Add concurrency limits for pull request test so that on pull request refresh old jobs are cancelled. The group is created based on the github ref + workflow name and the workflow is cancelled only it it comes from a pull_request event. Push events are not affected by this limit. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
dca1b92ecd
commit
cb679adf18
4
.github/workflows/kernel.yml
vendored
4
.github/workflows/kernel.yml
vendored
@ -21,6 +21,10 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
determine_targets:
|
||||
name: Set targets
|
||||
|
4
.github/workflows/packages.yml
vendored
4
.github/workflows/packages.yml
vendored
@ -23,6 +23,10 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Packages with external toolchain
|
||||
|
4
.github/workflows/toolchain.yml
vendored
4
.github/workflows/toolchain.yml
vendored
@ -15,6 +15,10 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
determine_targets:
|
||||
name: Set targets
|
||||
|
4
.github/workflows/tools.yml
vendored
4
.github/workflows/tools.yml
vendored
@ -15,6 +15,10 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
build-macos-latest:
|
||||
name: Build tools with macos latest
|
||||
|
Loading…
Reference in New Issue
Block a user