Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/sync-to-aws-eks-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,16 @@ cp -R "${helm_chart_path}/" "${eks_charts_nth_path}/"

echo -e "🥑 Commit updates"

git config --local user.name "ec2-bot 🤖"
git config --local user.email "[email protected]"

helm_chart_version="$(cat "${helm_chart_path}/Chart.yaml" | grep "version:" | cut -d ' ' -f2 | tr -d '"')"
pr_id="$(uuidgen | cut -d '-' -f1)"
git_release_branch="${helm_chart_name}-${helm_chart_version}-${pr_id}"
git checkout -b "${git_release_branch}"

git add --all
git commit --author="ec2-bot 🤖 <[email protected]>" -m "${helm_chart_name}: ${helm_chart_version}"
git commit -m "${helm_chart_name}: ${helm_chart_version}"
git push -u origin "${git_release_branch}"

#################################################
Expand Down