Merge pull request #8858 from Icinga/bugfix/ci-cancel-only-pr

Cancel previous HEAD's jobs only for PRs
This commit is contained in:
Julian Brost 2021-07-05 08:03:05 +02:00 committed by GitHub
commit 83cfb84fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ jobs:
steps:
- name: Cancel previous jobs for the same PR
if: "github.event_name == 'pull_request'"
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
with:
workflow_id: docker.yml,packages.yml

View File

@ -38,6 +38,7 @@ jobs:
steps:
- name: Cancel previous jobs for the same PR
if: "github.event_name == 'pull_request'"
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
with:
workflow_id: docker.yml,packages.yml
@ -148,6 +149,7 @@ jobs:
steps:
- name: Cancel previous jobs for the same PR
if: "github.event_name == 'pull_request'"
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
with:
workflow_id: docker.yml,packages.yml
@ -240,6 +242,7 @@ jobs:
steps:
- name: Cancel previous jobs for the same PR
if: "github.event_name == 'pull_request'"
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
with:
workflow_id: docker.yml,packages.yml