From: Luca Heltai Date: Thu, 28 Jan 2021 14:29:31 +0000 (+0100) Subject: Created cancelling workflow. X-Git-Tag: v9.3.0-rc1~553^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11643%2Fhead;p=dealii.git Created cancelling workflow. --- diff --git a/.github/workflows/cancelling.yml b/.github/workflows/cancelling.yml new file mode 100644 index 0000000000..ca8ec52261 --- /dev/null +++ b/.github/workflows/cancelling.yml @@ -0,0 +1,20 @@ +name: Cancelling +on: + workflow_run: + workflows: ['CI'] + types: ['requested'] + +jobs: + cancel-duplicate-workflow-runs: + name: "Cancel duplicate workflow runs" + runs-on: ubuntu-latest + steps: + - uses: potiuk/cancel-workflow-runs@master + name: "Cancel duplicate workflow runs" + with: + cancelMode: duplicates + cancelFutureDuplicates: true + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + notifyPRCancel: true + skipEventTypes: '["push", "schedule"]' diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a78a0191e1..423cc5ccd9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,12 +7,7 @@ on: jobs: build-master-docker: runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.7.0 - with: - access_token: ${{ github.token }} - + steps: - name: Checkout code uses: actions/checkout@v2