Cancel running workflows when you add changes to the same branch

This commit is contained in:
Daniel Sanchez 2021-03-26 16:31:14 +01:00
parent c25946ab8f
commit 500ca4b083
6 changed files with 24 additions and 0 deletions

View File

@ -36,6 +36,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Remove broken apt repos [Ubuntu] - name: Remove broken apt repos [Ubuntu]
if: ${{ matrix.os }} == 'ubuntu-latest' if: ${{ matrix.os }} == 'ubuntu-latest'
run: | run: |

View File

@ -35,6 +35,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Remove broken apt repos [Ubuntu] - name: Remove broken apt repos [Ubuntu]
if: ${{ matrix.os }} == 'ubuntu-latest' if: ${{ matrix.os }} == 'ubuntu-latest'
run: | run: |

View File

@ -37,6 +37,10 @@ jobs:
name: Deployment name: Deployment
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Remove broken apt repos [Ubuntu] - name: Remove broken apt repos [Ubuntu]
if: ${{ matrix.os }} == 'ubuntu-latest' if: ${{ matrix.os }} == 'ubuntu-latest'
run: | run: |

View File

@ -36,6 +36,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Remove broken apt repos [Ubuntu] - name: Remove broken apt repos [Ubuntu]
if: ${{ matrix.os }} == 'ubuntu-latest' if: ${{ matrix.os }} == 'ubuntu-latest'
run: | run: |

View File

@ -36,6 +36,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Remove broken apt repos [Ubuntu] - name: Remove broken apt repos [Ubuntu]
if: ${{ matrix.os }} == 'ubuntu-latest' if: ${{ matrix.os }} == 'ubuntu-latest'
run: | run: |

View File

@ -10,6 +10,10 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2