Skip to content

ci: cancel superseded workflow runs on PR pushes#98

Merged
claude-dataviking merged 1 commit into
mainfrom
audit/ci-concurrency
Jul 18, 2026
Merged

ci: cancel superseded workflow runs on PR pushes#98
claude-dataviking merged 1 commit into
mainfrom
audit/ci-concurrency

Conversation

@claude-dataviking

Copy link
Copy Markdown
Contributor

From the org CI-cost audit: cut wasted GitHub Actions runner minutes.

Every push/pull_request workflow that lacked a top-level concurrency: key now gets one:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}

cancel-in-progress is scoped to pull_request events only, so a superseded PR push cancels its in-flight run, while pushes to main and the tag/main release path in publish.yml are never cancelled (they serialize instead of aborting).

Workflows changed: ci.yml, publish.yml.
Left untouched: interop-drift.yml (schedule/workflow_dispatch only — no push/pull_request trigger).

🤖 Generated with Claude Code

Add a top-level concurrency group (github.workflow + github.ref) to the
push/pull_request workflows that lacked one, cancelling in-progress runs
only for pull_request events. Reduces wasted runner minutes from
superseded PR pushes while staying safe for main/tag release paths.

Part of the org CI-cost audit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@claude-dataviking
claude-dataviking merged commit d1afdea into main Jul 18, 2026
4 checks passed
@claude-dataviking
claude-dataviking deleted the audit/ci-concurrency branch July 18, 2026 14:54
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