From 0dd6784b8c2615dea1e53f471912dee85e0c7f2c Mon Sep 17 00:00:00 2001 From: Prayuj Tuli Date: Mon, 24 Aug 2026 23:24:16 -0400 Subject: [PATCH] ci: cancel deleted branch deploys --- .github/workflows/build-deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index d001591..ca7b5c3 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -7,6 +7,12 @@ on: workflow_dispatch: +# Normalize the branch name across push and delete events so deleting a merged +# branch cancels its in-flight preview deploy before cleanup runs. +concurrency: + group: nimbus-cityio-web-${{ github.event_name == 'delete' && github.event.ref || github.ref_name }} + cancel-in-progress: ${{ github.event_name == 'delete' }} + jobs: build-and-deploy: if: github.event_name != 'delete'