GitHub actions: auto-cancel previous jobs for the same PR

https://github.com/marketplace/actions/auto-cancellation-running-action
This commit is contained in:
Alexander A. Klimov 2021-04-16 13:10:43 +02:00
parent 8dc069dc24
commit e5f4dc5094
2 changed files with 24 additions and 0 deletions

View File

@ -14,6 +14,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:

View File

@ -36,6 +36,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
@ -140,6 +146,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:
@ -226,6 +238,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