[ci] Use dots in release candidtate versions, as per SemVer - #901
Conversation
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
WalkthroughThe pull request updates the regular expression in the Changes
Possibly related PRs
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/pull-requests-release.yaml (1)
154-154: Unusedversionconstant
You assignconst version = m[1] + (m[2] ?? '');but never use it afterward. Consider either emitting it viacore.setOutput('version', version)if downstream steps need it, or removing this line to avoid dead code.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/pull-requests-release.yaml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Build and Test
🔇 Additional comments (3)
.github/workflows/pull-requests-release.yaml (3)
148-148: Verify GitHub context interpolation and quoting
The line correctly pulls in the tag fromsteps.get_tag.outputs.taginto a JS string. Ensure that single quotes won’t conflict if tags ever include embedded quotes (unlikely here), but overall this is valid.
149-149: Regex correctly enforces dot inrcsuffix
The updated pattern/^v(\d+\.\d+\.\d+)(-rc\.\d+)?$/strictly matchesvX.Y.ZorvX.Y.Z-rc.N. This aligns with SemVer and your PR objective to require the dot betweenrcand the number.
151-151: Error message updated to reflect new format
The failure message now correctly instructs users on the allowed patterns (vX.Y.ZorvX.Y.Z-rc.N), matching your revised regex. Nicely done.
This change also fixes `finalizing release` workflow #890 (comment) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated release tag validation to require a dot between "rc" and the number (e.g., `v0.31.5-rc.1` instead of `v0.31.5-rc1`). - Adjusted error messages to reflect the new release tag format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> (cherry picked from commit 108fc64) Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
This change also fixes
finalizing releaseworkflow#890 (comment)
Summary by CodeRabbit
v0.31.5-rc.1instead ofv0.31.5-rc1).