From b1fcce264f788f7a5a2e00130170be0f673b98b7 Mon Sep 17 00:00:00 2001 From: Enrico Gruner Date: Sat, 3 Oct 2020 13:34:57 +0200 Subject: [PATCH] :wrench: Add Action to Cancel previous Workflows, if newer has been added --- .github/workflows/cancel.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/cancel.yml diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml new file mode 100644 index 00000000..c3ae5483 --- /dev/null +++ b/.github/workflows/cancel.yml @@ -0,0 +1,14 @@ +name: Cancel +on: [push] +jobs: + cancel: + name: 'Cancel Previous Runs' + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: styfle/cancel-workflow-action@0.5.0 + with: + # Ids of other workflows that ought to be canceled + # Ids can be found here: https://api.github.com/repos/fennecdjay/Gwion/actions/workflows + workflow_id: 55357,55358,55359,356501,359430,575240,575243,575600,604136,612771,619820,1306635,2138185,2665681,2809967 + access_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file -- 2.43.0