From: Enrico Gruner Date: Sat, 3 Oct 2020 11:34:57 +0000 (+0200) Subject: :wrench: Add Action to Cancel previous Workflows, if newer has been added X-Git-Tag: nightly~1247^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=refs%2Fpull%2F190%2Fhead;p=gwion.git :wrench: Add Action to Cancel previous Workflows, if newer has been added --- 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