Skip to content

Commit

Permalink
fix cloudbeat prs
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz committed Feb 14, 2024
1 parent 6d31c34 commit e83f460
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions scripts/bump_cloudbeat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ EOF
--base "main" \
--head "$NEXT_CLOUDBEAT_BRANCH" \
--label "backport-skip"
rm -rf cloudbeat_pr_body
}

create_cloudbeat_versions_pr_for_release() {
Expand All @@ -105,24 +106,26 @@ EOF
--base "$CURRENT_MINOR_VERSION" \
--head "$RELEASE_CLOUDBEAT_BRANCH" \
--label "backport-skip"

rm -rf cloudbeat_pr_body_release
}

# We need to bump hermit seperately because we need to wait for the snapshot build to be available
bump_hermit() {
echo "• Bump hermit cloudbeat version"
local BRANCH="bump-hermit-to-$NEXT_CLOUDBEAT_VERSION"
local BRANCH="bump-hermit-to-$CURRENT_CLOUDBEAT_VERSION"
git checkout -b "$BRANCH" origin/main

sed -i'' -E "s/\"CLOUDBEAT_VERSION\": .*/\"CLOUDBEAT_VERSION\": \"$NEXT_CLOUDBEAT_VERSION\",/g" bin/hermit.hcl
sed -i'' -E "s/\"CLOUDBEAT_VERSION\": .*/\"CLOUDBEAT_VERSION\": \"$CURRENT_CLOUDBEAT_VERSION\",/g" bin/hermit.hcl
git add bin/hermit.hcl
git commit -m "Bump cloudbeat to $NEXT_CLOUDBEAT_VERSION"
git commit -m "Bump cloudbeat to $CURRENT_CLOUDBEAT_VERSION"
git push origin "$BRANCH"

cat <<EOF >hermit_pr_body
Bump cloudbeat version - \`$NEXT_CLOUDBEAT_VERSION\`
Bump cloudbeat version - \`$CURRENT_CLOUDBEAT_VERSION\`
> [!IMPORTANT]
> to be merged after snapshot build for $NEXT_CLOUDBEAT_VERSION is available
> to be merged after snapshot build for $CURRENT_CLOUDBEAT_VERSION is available
> [!NOTE]
> This is an automated PR
Expand All @@ -134,6 +137,8 @@ EOF
--base "main" \
--head "$BRANCH" \
--label "backport-skip"

rm -rf hermit_pr_body
}

upload_cloud_formation_templates() {
Expand Down

0 comments on commit e83f460

Please sign in to comment.