Skip to content

Fix grep failure in docs workflow#33

Merged
theroyalwhee0 merged 1 commit intomainfrom
fix-docs-workflow-grep-failure
Nov 4, 2025
Merged

Fix grep failure in docs workflow#33
theroyalwhee0 merged 1 commit intomainfrom
fix-docs-workflow-grep-failure

Conversation

@theroyalwhee0
Copy link
Owner

Problem

PR #32 introduced a bug where the docs workflow fails when checking for version tags on commits without tags. The grep command returns exit code 1 when no match is found, causing the workflow to fail due to bash's -e flag.

Fix

Add || true to the grep command to ensure it always returns exit code 0, even when no tags are found.

Changes

TAGS=$(git tag --points-at HEAD | grep '^v' || true)

This allows the workflow to continue and correctly set is_release=false when no version tags are present.

Test

This will be tested when the PR is merged and the workflow runs on main.

Add '|| true' to grep command to prevent exit code 1 from causing
workflow failure when no version tags are found on the commit.

This fixes the docs workflow failure introduced in #32.
@theroyalwhee0 theroyalwhee0 self-assigned this Nov 4, 2025
@theroyalwhee0 theroyalwhee0 added the 🔧 tooling Build tools, CI/CD, dev workflow label Nov 4, 2025
@theroyalwhee0 theroyalwhee0 merged commit 63c7db1 into main Nov 4, 2025
1 check passed
@theroyalwhee0 theroyalwhee0 deleted the fix-docs-workflow-grep-failure branch November 4, 2025 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 tooling Build tools, CI/CD, dev workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant