From b28422988aea478ee840259d613a4630caf3462d Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 23 Feb 2022 08:56:38 +0100 Subject: [PATCH] chore(ci): cancel redundant workflow runs (#12468) --- .github/workflows/nodejs.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5011cab267a6..601d9035535d 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -8,15 +8,11 @@ on: branches: - '**' -jobs: - cleanup-runs: - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true +jobs: prepare-yarn-cache: name: Prepare yarn cache strategy: