Skip to content

Block Release Publishing workflow from automatically running on forks#1450

Merged
jeffhandley merged 1 commit intomodelcontextprotocol:mainfrom
jeffhandley:jeffhandley/block-workflows-on-forks
Apr 3, 2026
Merged

Block Release Publishing workflow from automatically running on forks#1450
jeffhandley merged 1 commit intomodelcontextprotocol:mainfrom
jeffhandley:jeffhandley/block-workflows-on-forks

Conversation

@jeffhandley
Copy link
Copy Markdown
Contributor

Add an if condition to the build-all-configs job to prevent the Release Publishing workflow from running on forks via schedule or release triggers. The workflow_dispatch trigger is exempted so fork owners can still manually test the workflow.

Since all downstream jobs (build-package, publish-github, publish-release, publish-nuget) depend on build-all-configs via the needs chain, they are automatically skipped when build-all-configs is skipped. This is consistent with the existing repository check in the publish-nuget job and docs.yml workflow.

Add an if condition to the build-all-configs job to prevent the
Release Publishing workflow from running on forks via schedule or
release triggers. The workflow_dispatch trigger is exempted so fork
owners can still manually test the workflow.

Since all downstream jobs (build-package, publish-github,
publish-release, publish-nuget) depend on build-all-configs via the
needs chain, they are automatically skipped when build-all-configs
is skipped.

This is consistent with the existing repository check
in the publish-nuget job and docs.yml workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jeffhandley jeffhandley self-assigned this Mar 20, 2026
@jeffhandley jeffhandley added the area-infrastructure Related to repo infrastructure label Mar 20, 2026
@jeffhandley
Copy link
Copy Markdown
Contributor Author

I just realized my fork was using 6.5 GB of actions storage from this workflow.

@jeffhandley jeffhandley merged commit 54087e7 into modelcontextprotocol:main Apr 3, 2026
jeffhandley added a commit to jeffhandley/modelcontextprotocol-csharp-sdk that referenced this pull request Apr 3, 2026
…modelcontextprotocol#1450)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jeffhandley jeffhandley deleted the jeffhandley/block-workflows-on-forks branch April 3, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Related to repo infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants