From 2fdbdd8fecc5cb13d0456a31479b630310db5a38 Mon Sep 17 00:00:00 2001 From: Jonathan Payne Date: Tue, 13 Oct 2026 16:09:36 -0400 Subject: [PATCH] OpenConceptLab/ocl_online#306 | Build: a newer push cancels the older run, including one waiting at an approval gate The release group already let only one run in progress, but a run parked at the rc, qa, staging or production gate held it, so the newer run stayed pending until someone cancelled the old one by hand. With cancel-in-progress, the newer push cancels it: the latest run is the only one left to approve. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GcLwjW3CmciUhMtBmiETb6 --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8f5b7b6..6c71b857 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,9 +4,12 @@ on: push: branches: [ "master" ] +# A newer push cancels the older run wherever it is: queued, running, or waiting at an approval gate. +# The latest run is the only one left to approve, so an approval never deploys an image older than the +# branch (OpenConceptLab/ocl_online#306). concurrency: group: release-${{ github.ref }} - cancel-in-progress: false + cancel-in-progress: true env: AWS_REGION: "us-east-2" # set this to your preferred AWS region, e.g. us-west-1