From 4712a0ac73dbf22a585a1f382ed6c29537cbe8a3 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Tue, 17 Sep 2024 07:58:13 +0200 Subject: [PATCH] chore: update cancel workflow action (#3176) --- .github/workflows/00-init.yml | 3 --- .github/workflows/default.yml | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/00-init.yml b/.github/workflows/00-init.yml index d1e53f33090..3e8b7710099 100644 --- a/.github/workflows/00-init.yml +++ b/.github/workflows/00-init.yml @@ -8,9 +8,6 @@ jobs: name: Init runs-on: ubuntu-latest steps: - - name: 🛑 Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - - name: ⏬ Checkout repo uses: actions/checkout@v4 diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 1d6a63a272a..53e7f16eca6 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -7,6 +7,10 @@ on: branches: - "main" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: init: uses: ./.github/workflows/00-init.yml