From 6bf6ad7a27240bed4d3197cf85f77cfd5c8bb4e0 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Fri, 9 Feb 2024 12:33:32 +0200 Subject: [PATCH] Remove the "Cancelling Duplicates" workflow There is now a native way to implement this - the `concurrency` key in workflows - so use that instead. This removes another action depending on Node 16 (`potiuk/cancel-workflow-runs`). --- .github/workflows/cancel.yml | 17 ----------------- .github/workflows/helm.yml | 4 ++++ .github/workflows/main.yml | 4 ++++ 3 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/cancel.yml diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 9e523d9c2193..000000000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Cancelling Duplicates -on: - workflow_run: - workflows: ['CI', 'Helm'] - 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 - token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 582770494b05..d05bb5a24ee4 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -11,6 +11,10 @@ on: - '**/*.md' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: testing: if: | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2464d05a9d59..477968fd6dc4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,10 @@ on: - 'site/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CYPRESS_VERIFY_TIMEOUT: 180000 # https://docs.cypress.io/guides/guides/command-line#cypress-verify CVAT_VERSION: "local"