Stop the Build workflow from running twice on same-repo PRs - #3311
Merged
dennisdoomen merged 1 commit intoAug 16, 2026
Conversation
dennisdoomen
had a problem deploying
to
qodana-pr
August 16, 2026 06:42 — with
GitHub Actions
Failure
dennisdoomen
had a problem deploying
to
qodana-pr
August 16, 2026 06:48 — with
GitHub Actions
Failure
dennisdoomen
had a problem deploying
to
qodana-pr
August 16, 2026 06:52 — with
GitHub Actions
Failure
dennisdoomen
marked this pull request as ready for review
August 16, 2026 07:09
Previously build.yml used `on: [push, pull_request]` with no branch filter, so pushing a branch directly to this repo (not a fork) and then opening a PR from it triggered both the push event and the pull_request event for the same commit, running the full build matrix twice. Restrict `push` to main, develop, support-* (maintenance branches like support-7.0 that also get direct pushes/backports), and tags (needed for the NuGet publish/attest steps gated on refs/tags/ -- this repo's release tags are bare semver like 8.10.0, not v-prefixed) so topic branches only trigger via pull_request. Also add a concurrency group so a stale run for the same branch/PR is cancelled when a newer one starts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
dennisdoomen
force-pushed
the
claude/github-actions-duplicate-pipelines-770dcd
branch
from
August 16, 2026 07:12
0600b77 to
4dfa2b1
Compare
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
jnyrup
approved these changes
Aug 16, 2026
This was referenced Sep 14, 2026
Open
Open
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a branch is pushed directly to this repo (not a fork) and a PR is then opened from it, the `Build` workflow was running twice for the exact same commit — once for the `push` event and once for the `pull_request` event — because it was declared as `on: [push, pull_request]` with no branch filter.
What changed
Not touched
Reviewer notes
No public API, test, or documentation changes — this is CI configuration only.
🤖 Generated with Claude Code