-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update prepare-release.yml #8135
Conversation
Validate version format in release workflow
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #8135 +/- ##
==========================================
+ Coverage 90.23% 90.25% +0.01%
==========================================
Files 301 301
Lines 15551 15551
==========================================
+ Hits 14033 14035 +2
+ Misses 1228 1227 -1
+ Partials 290 289 -1 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Pablo Baeyens <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I tested this locally. I left suggestions to clarify the error messages, after that this is ready to merge from my side
|
||
# Check if candidate-stable matches the version pattern. | ||
if ! [[ "${{ inputs.candidate-stable }}" =~ $version_pattern ]]; then | ||
echo "Invalid candidate-stable version format! Expected format: x.y.z or x.y.z-rcn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "Invalid candidate-stable version format! Expected format: x.y.z or x.y.z-rcn" | |
echo "Invalid candidate-stable version format! Expected format: x.y.z, x.y.z-rcN or x.y.z-rcvN" |
|
||
# Check if current-stable matches the version pattern. | ||
if ! [[ "${{ inputs.current-stable }}" =~ $version_pattern ]]; then | ||
echo "Invalid current-stable version format! Expected format: x.y.z or x.y.z-rcn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "Invalid current-stable version format! Expected format: x.y.z or x.y.z-rcn" | |
echo "Invalid current-stable version format! Expected format: x.y.z, x.y.z-rcN or x.y.z-rcvN" |
|
||
# Check if candidate-beta matches the version pattern. | ||
if ! [[ "${{ inputs.candidate-beta }}" =~ $version_pattern ]]; then | ||
echo "Invalid candidate-beta version format! Expected format: x.y.z or x.y.z-rcn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "Invalid candidate-beta version format! Expected format: x.y.z or x.y.z-rcn" | |
echo "Invalid candidate-beta version format! Expected format: x.y.z, x.y.z-rcN or x.y.z-rcvN |
|
||
# Check if current-beta matches the version pattern. | ||
if ! [[ "${{ inputs.current-beta }}" =~ $version_pattern ]]; then | ||
echo "Invalid current-beta version format! Expected format: x.y.z or x.y.z-rcn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "Invalid current-beta version format! Expected format: x.y.z or x.y.z-rcn" | |
echo "Invalid current-beta version format! Expected format: x.y.z, x.y.z-rcN or x.y.z-rcvN |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Validate version format in release workflow
Description:
The changes made in prepare-release.yml is made to validate the version format using a bash script.
Any suggestions will be appreciated.
Link to tracking Issue: #7627