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

ci: various release chart update fixes #579

Open
wants to merge 1 commit into
base: release/2.7
Choose a base branch
from

Conversation

tiagolobocastro
Copy link
Contributor

ci: various release chart update fixes

Don't update the chart on a pre-release
Set missing base branch for pull-request
Add stricter release validation
Add more tests

Signed-off-by: Tiago Castro <[email protected]>

Don't update the chart on a pre-release
Set missing base branch for pull-request
Add stricter release validation
Add more tests

Signed-off-by: Tiago Castro <[email protected]>
Copy link
Member

@niladrih niladrih left a comment

Choose a reason for hiding this comment

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

I'm not very clear on what this PR does..

Don't update the chart on a pre-release

What is the context here?

die "Build not supported"
fi
if [ -n "$BRANCH" ]; then
if ! [[ "$BRANCH" =~ ^release/[0-9]+.[0-9]+$ ]]; then
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
if ! [[ "$BRANCH" =~ ^release/[0-9]+.[0-9]+$ ]]; then
if ! [[ "$BRANCH" =~ ^(release/[0-9]+.[0-9]+)$ ]]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're not capturing groups here, so there's no need for that? Or is there another reason I'm unaware of?

@tiagolobocastro
Copy link
Contributor Author

I'm not very clear on what this PR does..

Don't update the chart on a pre-release

What is the context here?

A GitHub action bumps the release version on Chart.yaml on release but it's failing on pre-releases.
This fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants