mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Cancel previous HEAD's jobs only for PRs
This commit is contained in:
parent
1076bd1a06
commit
7673892a9d
1
.github/workflows/docker.yml
vendored
1
.github/workflows/docker.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
with:
|
with:
|
||||||
workflow_id: docker.yml,packages.yml
|
workflow_id: docker.yml,packages.yml
|
||||||
|
3
.github/workflows/packages.yml
vendored
3
.github/workflows/packages.yml
vendored
@ -38,6 +38,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
with:
|
with:
|
||||||
workflow_id: docker.yml,packages.yml
|
workflow_id: docker.yml,packages.yml
|
||||||
@ -148,6 +149,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
with:
|
with:
|
||||||
workflow_id: docker.yml,packages.yml
|
workflow_id: docker.yml,packages.yml
|
||||||
@ -240,6 +242,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel previous jobs for the same PR
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
with:
|
with:
|
||||||
workflow_id: docker.yml,packages.yml
|
workflow_id: docker.yml,packages.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user