[ci] Use dots in release candidtate versions, as per SemVer - #890
Conversation
|
""" WalkthroughThe changes update the GitHub Actions workflow configuration for tag-based triggers. The workflow now separately matches stable version tags ( Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
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 (
|
| - 'v*.*.*' # vX.Y.Z | ||
| - 'v*.*.*-rc.*' # vX.Y.Z-rc.N |
There was a problem hiding this comment.
I know that first pattern includes RC, but this way it's more explicit.
Before: 0.31.0-rc1 After: 0.31.0-rc.1 Why this matters: we want to do things the right way from the start. Version patten affects how versions are parsed and sorted. For example, we have release candidates number 9 and 10: * In 'rc.9' and 'rc.10', the numeric parts are compared as numbers, so 9 comes before 10. * In 'rc9' and 'rc10', versions are compared lexicographically, so 10 comes before 9, which is wrong. Reference: SemVer items 9–11. https://semver.org/#spec-item-9 Signed-off-by: Nick Volynkin <nick.volynkin@gmail.com>
f537689 to
637551e
Compare
|
Nick Volynkin (@NickVolynkin) could you please also fix https://github.com/cozystack/cozystack/actions/runs/14665130076/job/41158007078 |
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 -->
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>
Before: 0.31.0-rc1
After: 0.31.0-rc.1
Why this matters: we want to do things the right way from the start.
Version patten affects how versions are parsed and sorted.
For example, we have release candidates number 9 and 10:
so 9 comes before 10.
so 10 comes before 9, which is wrong.
Reference: SemVer items 9–11. https://semver.org/#spec-item-9
Signed-off-by: Nick Volynkin nick.volynkin@gmail.com
Summary by CodeRabbit