Skip to content

ci: fix docs-only gate (was failing the release job) - #18

Merged
VU3ESV merged 1 commit into
mainfrom
ci/fix-docs-gate
Jun 6, 2026
Merged

ci: fix docs-only gate (was failing the release job)#18
VU3ESV merged 1 commit into
mainfrom
ci/fix-docs-gate

Conversation

@VU3ESV

@VU3ESV VU3ESV commented Jun 6, 2026

Copy link
Copy Markdown
Owner

The docs-only gate merged earlier had a bug: its final line

[ "$skip" = true ] && echo "::notice::…"

returns a non-zero exit when skip=false (any non-docs change). As the last command in the step, that failed the gate job — and because the release job has needs: gate, a failed gate skipped the release for real changes too. This blocks all releases on this repo.

Fix: use an if … fi block (always exits 0) and harden the PR files API call with || true. Behavior is unchanged: docs-only → skip; anything else → release; tags/dispatch → always release.

🤖 Generated with Claude Code

The gate's final '[ "$skip" = true ] && echo …' exited non-zero when
skip=false, failing the step; via needs: gate that skipped the release for
real changes. Use an if-block + harden the PR files API call with || true.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@VU3ESV
VU3ESV merged commit 9860a5f into main Jun 6, 2026
1 check passed
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