Update checkout action to use 'main' branch#5
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the Create Release workflow to explicitly check out the main branch instead of running on a detached HEAD state, ensuring that created tags are properly associated with a branch and trigger the downstream Release workflow.
- Modified the checkout step to explicitly reference the
mainbranch - Ensures tags created by the workflow point to branch-backed commits
- Addresses the issue where
push.tagsevents were not triggering the Release workflow
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Removed skip_validation input from create-release workflow.
There was a problem hiding this comment.
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
sqlite-graph/.github/workflows/create-release.yml
Lines 67 to 76 in 28220a0
* Update checkout action to use 'main' branch * Remove skip_validation option from release workflow Removed skip_validation input from create-release workflow.
Description
The release-tag workflow previously ran on a detached HEAD, causing tags to be created on commits that were not associated with the
mainbranch. GitHub only triggerspush.tagsworkflows when the tag points to a branch-backed commit, so the Release workflow never executed.This PR updates the checkout step to explicitly check out
main, ensuring all created tags correctly trigger the Release pipeline.Related Issues
Fixes the issue where automated tags did not trigger the Release workflow.
Closes #
Type of Change
Changes Made
ref: mainto theactions/checkoutstep in theCreate Releaseworkflow.push.tagsevents trigger the Release job.Testing
mainTest Evidence
Documentation
Checklist
Breaking Changes
N/A
Performance Impact
Additional Context
This fixes the core issue behind the Release workflow failing to run after automated tag creation. Tagging now behaves exactly as expected.
Reviewer Notes
Please confirm that the workflow now reliably checks out
mainand that tag-triggered runs work end-to-end.Note
Update Create Release workflow to explicitly check out main and remove the skip_validation input.
.github/workflows/create-release.yml:actions/checkouttoref: main.workflow_dispatchinputskip_validation.Written by Cursor Bugbot for commit 28220a0. This will update automatically on new commits. Configure here.