ci: skip lefthook on spec-sync bot push (#1866)

This commit is contained in:
Felix Weinberger 2026-04-13 13:35:38 +01:00 • committed by GitHub
commit 169366828c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,9 @@ jobs:
if: steps.check_changes.outputs.has_changes == 'true'
env:
GH_TOKEN: ${{ github.token }}
# Skip lefthook pre-push (typecheck/lint/build); spec drift that breaks
# typecheck should still open a PR so it can be fixed there.
LEFTHOOK: 0
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
@ -58,7 +61,7 @@ jobs:
git checkout -B update-spec-types
git add packages/core/src/types/spec.types.ts
git commit -m "chore: update spec.types.ts from upstream"
git push -f origin update-spec-types
git push -f --no-verify origin update-spec-types
# Create PR if it doesn't exist, or update if it does
PR_BODY="This PR updates \`packages/core/src/types/spec.types.ts\` from the Model Context Protocol specification.