forked from molecule-ai/molecule-core
The checkout uses fetch-depth=2, which works for push events (only need HEAD^1). But for pull_request events the diff base is github.event.pull_request.base.sha — the tip of the target branch — which can be many commits behind and therefore absent from the shallow clone, producing: fatal: bad object <sha> (exit 128) Fix: add an explicit `git fetch --depth=1 origin <base-sha>` step that runs only on pull_request events, keeping push events fast. Unblocks: PR #1996 (and any other PR targeting a fast-moving staging). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auto-promote-staging.yml | ||
| block-internal-paths.yml | ||
| canary-staging.yml | ||
| canary-verify.yml | ||
| check-merge-group-trigger.yml | ||
| ci.yml | ||
| codeql.yml | ||
| e2e-api.yml | ||
| e2e-staging-canvas.yml | ||
| e2e-staging-saas.yml | ||
| e2e-staging-sanity.yml | ||
| promote-latest.yml | ||
| publish-canvas-image.yml | ||
| publish-workspace-server-image.yml | ||
| retarget-main-to-staging.yml | ||