Skip to content

Commit 68ed229

Browse files
cliffhallclaude
andcommitted
ci: run Python and TypeScript workflows on push only (modelcontextprotocol#5048)
Triggering on both push and pull_request ran every job twice for each commit on a PR branch. Match the Inspector (modelcontextprotocol/inspector#1297) and trigger on push alone; the PR's checks come from the head commit's push run. Fork PRs, the case push alone misses, are no longer accepted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent 90f85b7 commit 68ed229

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/python.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Python
22

33
on:
4+
# Push only, as in the Inspector: with pull_request as well, every commit on a
5+
# PR branch ran each workflow twice (once per event). PR checks still report
6+
# from the push run of the head commit.
47
push:
5-
pull_request:
68

79
# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes),
810
# except on main, where every merge keeps its own CI run

‎.github/workflows/typescript.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: TypeScript
22

33
on:
4+
# Push only, as in the Inspector: with pull_request as well, every commit on a
5+
# PR branch ran each workflow twice (once per event). PR checks still report
6+
# from the push run of the head commit.
47
push:
5-
pull_request:
68

79
# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes),
810
# except on main, where every merge keeps its own CI run

0 commit comments

Comments
 (0)