Skip to content

ci: avoid duplicate workflow runs across PR and merge#630

Merged
lakhansamani merged 1 commit into
mainfrom
ci/dedupe-workflows
Jun 15, 2026
Merged

ci: avoid duplicate workflow runs across PR and merge#630
lakhansamani merged 1 commit into
mainfrom
ci/dedupe-workflows

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Splits the Buf workflow and trims the CI trigger so nothing runs twice across a PR and its merge commit.

  • buf.ymlvalidate (lint + breaking) runs on PRs only; publish (buf push) runs on main only. Previously a single job re-ran lint/breaking on every main push.
  • ci.yml — drop push: main (changes only land via PRs, which already run it); add a concurrency group.

Follow-up to #627 (merged before these refinements landed).

- buf.yml: separate validate (lint+breaking, PR-only) from publish (push,
  main-only) so lint/breaking don't re-run on the merge commit
- ci.yml: drop the push:main trigger (PRs already validate) and add a
  concurrency group
Both keyed concurrency cancels superseded PR runs.
@lakhansamani lakhansamani merged commit 255d55d into main Jun 15, 2026
4 checks passed
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