Skip to content

fix(ci): fetch main by explicit refspec in tag builds - #7

Merged
hyochan merged 2 commits into
mainfrom
fix/codemagic-tag-fetch-main
Nov 18, 2026
Merged

hyochan merged 2 commits into
mainfrom
fix/codemagic-tag-fetch-main

Conversation

@hyochan

@hyochan hyochan commented Nov 18, 2026

Copy link
Copy Markdown
Member

Summary

The first tag-triggered run, ota-dry-codemagic-1 (build 6afd4af5ae2a1a47cc88eebd), failed in "Require the tag to be the tip of main" with: fatal: ambiguous argument 'origin/main'.

Codemagic clones a tag with no remote-tracking branches, so git fetch origin main updates only FETCH_HEAD. Both yaml checks and scripts/ota-release.zsh now fetch +refs/heads/main:refs/remotes/origin/main.

Verification

  • I reproduced the CI clone locally: git init, fetch only the tag, no fetch refspec, 0 remote branches. The fixed step passes and leaves the checkout on main.
  • test/release/otaRelease.test.ts passes.
  • After merge I'll push a new ota-dry- tag.

🤖 Generated with Claude Code

Codemagic clones a tag with no remote-tracking branches, so
`git fetch origin main` updated only FETCH_HEAD and origin/main never
existed. The first ota-dry tag build failed its tip-of-main check that way,
and scripts/ota-release.zsh would have failed the same check next. Fetch
+refs/heads/main:refs/remotes/origin/main in both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
bookoo-public Ready Ready Preview Nov 18, 2026 7:48am UTC

@hyochan hyochan added 🐛 bug Something isn't working 💨 ci Cloud integration labels Nov 18, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hyochan
hyochan merged commit ea5307d into main Nov 18, 2026
6 checks passed
@hyochan
hyochan deleted the fix/codemagic-tag-fetch-main branch November 18, 2026 07:54

This branch was successfully deployed

1 active deployment
Preview — 566ac357 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working 💨 ci Cloud integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant