Skip to content

Commit 04a7331

Browse files
ci: skip lefthook on spec-sync bot push
pnpm install installs lefthook hooks on the runner, so the bot's git push runs typecheck/lint/build. When upstream schema drift breaks typecheck, the push fails and no PR is created. Set LEFTHOOK=0 and --no-verify so drift always opens a PR; the PR's own CI surfaces any breakage.
1 parent 7ba58da commit 04a7331

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/update-spec-types.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ jobs:
5151
if: steps.check_changes.outputs.has_changes == 'true'
5252
env:
5353
GH_TOKEN: ${{ github.token }}
54+
# Skip lefthook pre-push (typecheck/lint/build); spec drift that breaks
55+
# typecheck should still open a PR so it can be fixed there.
56+
LEFTHOOK: 0
5457
run: |
5558
git config user.name "github-actions[bot]"
5659
git config user.email "github-actions[bot]@users.noreply.github.com"
5760
5861
git checkout -B update-spec-types
5962
git add packages/core/src/types/spec.types.ts
6063
git commit -m "chore: update spec.types.ts from upstream"
61-
git push -f origin update-spec-types
64+
git push -f --no-verify origin update-spec-types
6265
6366
# Create PR if it doesn't exist, or update if it does
6467
PR_BODY="This PR updates \`packages/core/src/types/spec.types.ts\` from the Model Context Protocol specification.

0 commit comments

Comments
 (0)