mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8686 from Icinga/bugfix/gha-cancel
GitHub actions: auto-cancel previous jobs for the same PR
This commit is contained in:
commit
befc47dfaa
|
@ -15,6 +15,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Cancel previous jobs for the same PR
|
||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||
with:
|
||||
workflow_id: docker.yml,packages.yml
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Docker image
|
||||
uses: Icinga/docker-icinga2@master
|
||||
env:
|
||||
|
|
|
@ -37,6 +37,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Cancel previous jobs for the same PR
|
||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||
with:
|
||||
workflow_id: docker.yml,packages.yml
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Checkout HEAD
|
||||
uses: actions/checkout@v1
|
||||
|
||||
|
@ -141,6 +147,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Cancel previous jobs for the same PR
|
||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||
with:
|
||||
workflow_id: docker.yml,packages.yml
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Vars
|
||||
id: vars
|
||||
env:
|
||||
|
@ -227,6 +239,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Cancel previous jobs for the same PR
|
||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||
with:
|
||||
workflow_id: docker.yml,packages.yml
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Checkout HEAD
|
||||
uses: actions/checkout@v1
|
||||
|
||||
|
|
Loading…
Reference in New Issue