mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #9636 from Icinga/gha-cancel
GHA: let GitHub cancel redundant jobs
This commit is contained in:
commit
d29ff62017
11
.github/workflows/deb.yml
vendored
11
.github/workflows/deb.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
- 'support/*'
|
- 'support/*'
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: deb-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deb:
|
deb:
|
||||||
name: .deb
|
name: .deb
|
||||||
@ -31,13 +35,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
|
||||||
if: "github.event_name == 'pull_request'"
|
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
|
||||||
with:
|
|
||||||
workflow_id: deb.yml,docker.yml,raspbian.yml,rpm.yml,windows.yml
|
|
||||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Checkout HEAD
|
- name: Checkout HEAD
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
11
.github/workflows/docker.yml
vendored
11
.github/workflows/docker.yml
vendored
@ -10,6 +10,10 @@ on:
|
|||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: docker-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker-release:
|
docker-release:
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
@ -27,13 +31,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
|
||||||
if: "github.event_name == 'pull_request'"
|
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
|
||||||
with:
|
|
||||||
workflow_id: deb.yml,docker.yml,raspbian.yml,rpm.yml,windows.yml
|
|
||||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Docker image
|
- name: Docker image
|
||||||
uses: Icinga/docker-icinga2@master
|
uses: Icinga/docker-icinga2@master
|
||||||
with:
|
with:
|
||||||
|
11
.github/workflows/raspbian.yml
vendored
11
.github/workflows/raspbian.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
- 'support/*'
|
- 'support/*'
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: raspbian-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
raspbian:
|
raspbian:
|
||||||
name: Raspbian
|
name: Raspbian
|
||||||
@ -20,13 +24,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
|
||||||
if: "github.event_name == 'pull_request'"
|
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
|
||||||
with:
|
|
||||||
workflow_id: deb.yml,docker.yml,raspbian.yml,rpm.yml,windows.yml
|
|
||||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Checkout HEAD
|
- name: Checkout HEAD
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
11
.github/workflows/rpm.yml
vendored
11
.github/workflows/rpm.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
- 'support/*'
|
- 'support/*'
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: rpm-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rpm:
|
rpm:
|
||||||
name: .rpm (${{ matrix.distro.name }}, ${{ matrix.distro.release }})
|
name: .rpm (${{ matrix.distro.name }}, ${{ matrix.distro.release }})
|
||||||
@ -43,13 +47,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
|
||||||
if: "github.event_name == 'pull_request'"
|
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
|
||||||
with:
|
|
||||||
workflow_id: deb.yml,docker.yml,raspbian.yml,rpm.yml,windows.yml
|
|
||||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Vars
|
- name: Vars
|
||||||
id: vars
|
id: vars
|
||||||
env:
|
env:
|
||||||
|
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
- 'support/*'
|
- 'support/*'
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: windows-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows:
|
windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user