Skip to content

Commit

Permalink
set git identity in sync-to-aws-eks-charts.sh (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjerad authored Oct 20, 2022
1 parent 68b65f6 commit 9504965
Showing 1 changed file with 4 additions and 1 deletion.
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 "ec2-bot@users.noreply.github.com"

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 🤖 <ec2-bot@users.noreply.github.com>" -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

0 comments on commit 9504965

Please sign in to comment.