Skip to content

ci: cancel outdated PR workflow runs on newer commits - #15309

Draft
lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:ci/cancel-in-progress-workflows
Draft

lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:ci/cancel-in-progress-workflows

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Configure PR-scoped concurrency with cancel-in-progress: ${{ github.event_name == 'pull_request' }} across PR workflows so superseded runs are cancelled when new commits are pushed:

  • Update ci.yaml and formatter-version-check.yaml to key concurrency groups on github.event.pull_request.number || github.run_id (instead of github.head_ref) and scope cancellation strictly to pull_request events.
  • Add the same PR-scoped concurrency block to 33 read-only PR workflows.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant