Skip to content

Commit 54087e7

Browse files
jeffhandleyCopilot
andauthored
Block Release Publishing workflow from automatically running on forks (#1450)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dfa9342 commit 54087e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ on:
3232

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

0 commit comments

Comments
 (0)