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

Cleaning up publish release and adding chart version increment #26535

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

georgekarrv
Copy link
Member

@georgekarrv georgekarrv commented Feb 21, 2025

For #23680

target_branch=$(echo $output | jq -r .baseRefName)
echo -n "$pr $state $commit $target_branch:"
if [[ "$state" != "MERGED" || "$target_branch" != "main" ]]; then
target_pr_branch=$(echo $output | jq -r .baseRefName)
Copy link
Member Author

Choose a reason for hiding this comment

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

this overloading was causing one of the issues where 'target_branch' was the rc-xxx branch but get's set back to 'main' here so just setting this to an explicit var to avoid that.

Linux*) echo "$version_files" | xargs sed -i "s/$escaped_start_version/$target_milestone/g";;
Darwin*) echo "$version_files" | xargs sed -i '' "s/$escaped_start_version/$target_milestone/g";;
Linux*) echo "$version_files" | xargs sed -i "s/$escaped_start_version/$target_milestone/g";
sed -i -E 's/(version: v[0-9]+\.[0-9]+\.)([0-9]+)/echo "\1$((\2+1))"/e' charts/fleet/Chart.yaml;;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is what will increment the patch version of the chart. If there are chart changes the user will still need to manually change the version in the PR from a patch update to a minor update.

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.

1 participant