From 7d3bb3ee9feda9d3e7c7f9b2a4bb2d7747b292eb Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:41:02 +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/default.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 9bac8c26..1324b15e 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -8,13 +8,6 @@ on: - "main" jobs: - cancel-previous: - name: Cancel Previous Runs - runs-on: ubuntu-latest - steps: - - name: 🛑 Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - build-examples: name: Build example runs-on: ubuntu-latest From 0d67f89b80c95ef33184ed4b6af317d1ef6ddb26 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:42:26 +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 1324b15e..a3435f2f 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: build-examples: name: Build example