Skip to content

fix(ci): skip release PR validation when branch missing#133

Merged
rhuanbarreto merged 1 commit into
mainfrom
fix/release-branch-not-found
Mar 22, 2026
Merged

fix(ci): skip release PR validation when branch missing#133
rhuanbarreto merged 1 commit into
mainfrom
fix/release-branch-not-found

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • When simple-release-action finds no releasable commits (e.g. only chore pushes), it succeeds without creating the release branch
  • The subsequent CI-trigger step then fails with a 404 on gh api .../git/ref/heads/release
  • Guard against this by checking the branch exists before triggering CI; exit cleanly if absent

Fixes https://github.com/archgate/cli/actions/runs/23392177826/job/68048701479

Test plan

  • Push a non-releasable commit (e.g. chore) to main and verify the release workflow succeeds

When simple-release-action finds no releasable commits it succeeds
without creating the release branch. The next step then fails with a
404 on `gh api .../git/ref/heads/release`. Guard against this by
checking the branch exists before triggering CI.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 22, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 475e59a
Status: ✅  Deploy successful!
Preview URL: https://0cf66671.archgate-cli.pages.dev
Branch Preview URL: https://fix-release-branch-not-found.archgate-cli.pages.dev

View logs

@rhuanbarreto rhuanbarreto enabled auto-merge (squash) March 22, 2026 01:04
@rhuanbarreto rhuanbarreto merged commit d424244 into main Mar 22, 2026
8 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/release-branch-not-found branch March 22, 2026 01:05
@github-actions github-actions Bot mentioned this pull request Mar 22, 2026
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