mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #8867 from Icinga/bugfix/gha-cancel-211
GitHub actions: auto-cancel previous jobs for the same PR
This commit is contained in:
commit
f714ca7982
21
.github/workflows/packages.yml
vendored
21
.github/workflows/packages.yml
vendored
@ -37,6 +37,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
|
with:
|
||||||
|
workflow_id: packages.yml
|
||||||
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Checkout HEAD
|
- name: Checkout HEAD
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
@ -141,6 +148,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
|
with:
|
||||||
|
workflow_id: packages.yml
|
||||||
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Vars
|
- name: Vars
|
||||||
id: vars
|
id: vars
|
||||||
env:
|
env:
|
||||||
@ -227,6 +241,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cancel previous jobs for the same PR
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
|
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc
|
||||||
|
with:
|
||||||
|
workflow_id: packages.yml
|
||||||
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Checkout HEAD
|
- name: Checkout HEAD
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user