Block Release Publishing workflow from automatically running on forks (#1450)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Jeff Handley 2026-04-03 01:23:03 -07:00 • committed by GitHub
commit 54087e7276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,6 +32,8 @@ on:
jobs:
build-all-configs:
# Don't run scheduled/release triggers on forks; allow manual workflow_dispatch
if: ${{ github.repository == 'modelcontextprotocol/csharp-sdk' || github.event_name == 'workflow_dispatch' }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]