Skip to content
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

Closed

Conversation

Abhishek-569
Copy link
Contributor

@Abhishek-569 Abhishek-569 commented Jul 26, 2023

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

Validate version format in release workflow
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (5613523) 90.23% compared to head (a834b71) 90.25%.

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     

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jpkrohling jpkrohling added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 26, 2023
Copy link
Member

@mx-psi mx-psi left a 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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Aug 16, 2023
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants