Cancel previous HEAD's jobs only for PRs

This commit is contained in:
Alexander A. Klimov 2021-07-01 11:25:29 +02:00
parent 1076bd1a06
commit 7673892a9d
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