Skip to content

Update checkout action to use 'main' branch#5

Merged
gabewillen merged 2 commits into
mainfrom
fix/create-release
Nov 14, 2025
Merged

Update checkout action to use 'main' branch#5
gabewillen merged 2 commits into
mainfrom
fix/create-release

Remove skip_validation option from release workflow

28220a0
Select commit
Loading
Failed to load commit list.
Cursor / Cursor Bugbot completed Nov 14, 2025 in 1m 24s

Bugbot Review

Bugbot Analysis Progress (1m 25s elapsed)

✅ Gathered PR context (1s)
✅ Analyzed code changes (0s)
✅ Completed bug detection — 1 potential bug found (1m 6s)
✅ Validation and filtering completed (0s)
✅ Posted analysis results — 1 bug reported (17s)
✅ Analysis completed successfully (0s)

Final Result: Bugbot completed review and found 1 potential issue

Request ID: serverGenReqId_ab11d7ec-fe49-495f-8c25-a7830f6eaa9a

Details

Bug: Flawed Workflow Validation Causes Confusion

The "Validate branch" step references inputs.skip_validation which was removed from the workflow inputs, causing the conditional to always evaluate to true. Additionally, this validation is now redundant since the checkout step hardcodes ref: main, making it impossible to check out any other branch. The error message mentioning enabling skip validation is also misleading since that option no longer exists.

.github/workflows/create-release.yml#L67-L76

- name: Validate branch
if: ${{ !inputs.skip_validation }}
run: |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$CURRENT_BRANCH" != "main" ]; then
echo "Error: Not on main branch (current: $CURRENT_BRANCH)"
echo "To release from a different branch, enable 'Skip branch validation'"
exit 1
fi

Fix in Cursor Fix in Web