Skip to content

[Repo Assist] Remove duplicate CI trigger on push to main#1100

Merged
dsyme merged 1 commit intomainfrom
repo-assist/eng-ci-pr-only-20260310-e3254bbe729aa1f1
Mar 18, 2026
Merged

[Repo Assist] Remove duplicate CI trigger on push to main#1100
dsyme merged 1 commit intomainfrom
repo-assist/eng-ci-pr-only-20260310-e3254bbe729aa1f1

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Mar 17, 2026

The 'Build and Test PR' workflow was triggered on both 'pull_request'
and 'push: main'. This caused duplicate CI runs every time a PR was
merged: both pull-requests.yml (Ubuntu + Windows) and push-main.yml
(Ubuntu) would run the full pipeline in parallel.

The push-main.yml workflow already handles all post-merge work on main
(lint, build, test, pack, generate docs, deploy, publish NuGet).
The PR workflow's purpose is cross-platform testing before merge.
Removing the 'push: main' trigger eliminates ~2 redundant jobs per merge.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The 'Build and Test PR' workflow was triggered on both 'pull_request'
and 'push: main'. This caused duplicate CI runs every time a PR was
merged: both pull-requests.yml (Ubuntu + Windows) and push-main.yml
(Ubuntu) would run the full pipeline in parallel.

The push-main.yml workflow already handles all post-merge work on main
(lint, build, test, pack, generate docs, deploy, publish NuGet).
The PR workflow's purpose is cross-platform testing *before* merge.
Removing the 'push: main' trigger eliminates ~2 redundant jobs per merge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dsyme dsyme merged commit 83c90a1 into main Mar 18, 2026
10 checks passed
@dsyme dsyme deleted the repo-assist/eng-ci-pr-only-20260310-e3254bbe729aa1f1 branch March 18, 2026 14:03
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.

2 participants