-
Notifications
You must be signed in to change notification settings - Fork 483
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
base: main
Are you sure you want to change the base?
Conversation
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) |
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.
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;; |
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.
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.
For #23680