Skip to content

fix(ci): resolve the deploy ref with git - #37

Merged
EOEboh merged 1 commit into
mainfrom
fix/deploy-resolve-ref
Jul 28, 2026
Merged

fix(ci): resolve the deploy ref with git#37
EOEboh merged 1 commit into
mainfrom
fix/deploy-resolve-ref

Conversation

@EOEboh

@EOEboh EOEboh commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Second iteration on the rollback path, both found by running it rather than trusting it.

fetch-depth: 0 was necessary but not sufficient — actions/checkout's ref accepts a branch, a tag, or a full 40-character SHA, and a short SHA fails with a branch or tag with the name '026f727' could not be found. Short SHAs are how commits get quoted in practice.

Now checks out the default branch with full history and lets git checkout move to the requested ref, which handles branches, tags and SHAs of any length.

Production untouched through both failed attempts — checkout is the first step, long before anything on the server is involved.

The rollback still failed after fetch-depth: 0, with 'a branch or tag
with the name 026f727 could not be found'. actions/checkout's ref input
takes a branch, a tag, or a full 40-character SHA — an abbreviated one is
not accepted, and abbreviated is how commits are actually quoted.

Checks out the default branch with full history and then lets git move to
the requested ref, which accepts branches, tags, and SHAs of any length.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Deploying hookdrop-frontend with  Cloudflare Pages  Cloudflare Pages

Latest commit: 89ad234
Status: ✅  Deploy successful!
Preview URL: https://e7bbc88e.hookdrop-frontend.pages.dev
Branch Preview URL: https://fix-deploy-resolve-ref.hookdrop-frontend.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying hookdrop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 89ad234
Status: ✅  Deploy successful!
Preview URL: https://ab660538.hookdrop.pages.dev
Branch Preview URL: https://fix-deploy-resolve-ref.hookdrop.pages.dev

View logs

@EOEboh
EOEboh merged commit 79a8ea6 into main Jul 28, 2026
6 checks passed
@EOEboh
EOEboh deleted the fix/deploy-resolve-ref branch July 28, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant