From 97f728a7b70c2ec692c21e65ce1d6cd573005df3 Mon Sep 17 00:00:00 2001 From: Liam Broza Date: Sun, 2 Aug 2026 21:30:35 -0700 Subject: [PATCH] chore(ci): cancel superseded workflow runs Without a `concurrency` block, pushing three commits to a branch runs the whole suite three times and pays for all three. The group is scoped to the ref so different branches never cancel each other. Deploy and release workflows use `cancel-in-progress: false`: interrupting one mid-flight can leave a half-published artifact, so they queue instead. Added a concurrency block to 2 workflow(s). --- .github/workflows/ci.yml | 4 ++++ .github/workflows/integration.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e42f441..4e1a816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ main, dev ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build-and-test: runs-on: ubuntu-latest diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 477938e..a893f84 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -27,6 +27,10 @@ on: - '.github/workflows/integration.yml' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: backend-integration-tests: runs-on: ubuntu-latest