fix(ci): simplify version handling in release workflow#55
Conversation
- Forced version: use input directly instead of reading back from file - Automatic version: use tomllib to parse version after semantic-release - Remove redundant "Get version" step Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to 520fcd2 in 7 seconds. Click for details.
- Reviewed
47lines of code in1files - Skipped
0files when reviewing. - Skipped posting
0draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
Workflow ID: wflow_R7u3aSFUslbbHIiw
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
User description
Summary
Fixes the version extraction error in the release workflow.
Changes:
${{ inputs.force_version }}directly - no file parsing neededtomllibto parse version after semantic-release modifies itTest plan
0.2.0🤖 Generated with Claude Code
PR Type
Bug fix, Enhancement
Description
Simplify version extraction by removing redundant "Get version" step
Use direct input for forced version instead of file parsing
Use Python's
tomllibto parse version after semantic-release modifies itConsolidate version output handling with conditional environment variable
Diagram Walkthrough
File Walkthrough
release.yaml
Refactor version extraction and output handling.github/workflows/release.yaml
id: auto_versionto automatic version bump step withtomllibparsing
id: forced_versionto forced version bump step with directoutput
VERSIONunified version variable
Important
Simplifies version handling in release workflow by using
tomlliband removing redundant steps.${{ inputs.force_version }}directly for forced versioning, eliminating file parsing.tomllibto extract version aftersemantic-releasemodifies it.release.yamlto reflect these changes in version handling and commit/tag steps.This description was created by
for 520fcd2. You can customize this summary. It will automatically update as commits are pushed.