From c38f7038aeaba1a9b97829c09b86046f3f8891f6 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:35:59 +0200 Subject: [PATCH 1/2] chore: update cancel workflow action There is a build in function to solve this adapted out of db-ui/mono#3176 --- .github/workflows/00-init.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/00-init.yml b/.github/workflows/00-init.yml index 897f849575..142976ee74 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 From 1c13bc05d9ccf5d55d0e3515468457b53c654832 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:36:58 +0200 Subject: [PATCH 2/2] Update default.yml --- .github/workflows/default.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 2da024a1b8..fa52bdf2d7 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -6,6 +6,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