From 484cab516cc0adc35eb5cb86068d997671404b30 Mon Sep 17 00:00:00 2001 From: amiabot Date: Fri, 20 Nov 2026 23:57:16 +0000 Subject: [PATCH] Update: synced local '.github/workflows/verify-build.yml' with remote 'workflows/verify-build-default.yml' --- .github/workflows/verify-build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/verify-build.yml b/.github/workflows/verify-build.yml index 32843b1..146f2b8 100644 --- a/.github/workflows/verify-build.yml +++ b/.github/workflows/verify-build.yml @@ -9,6 +9,17 @@ on: - '!.github/workflows/**' - .github/workflows/verify-build.yml +# Cancel a run that a newer push to the same pull request has superseded. +# GitHub bills per job by wall-clock time rounded up to the minute, so a run +# nobody is waiting on still costs full price. +# +# `cancel-in-progress` is conditional rather than `true`: these workflows also +# run on pushes to trunk in some projects, and a trunk run is the record of +# what is on the default branch. Only pull request runs are cancelled. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + # The GITHUB_TOKEN used by Dependabot has read-only permissions by default. We # provide write permissions to this workflow so that comments can be left on # the pull request.