2021-01-08 05:57:57 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
|
|
|
|
2021-01-15 12:48:38 +08:00
|
|
|
git clone homebrew-tap-repo updated-homebrew-tap-repo > /dev/null
|
2021-01-08 05:57:57 +08:00
|
|
|
|
|
|
|
if [[ $LATEST_GA = true ]]; then
|
2021-01-15 12:48:38 +08:00
|
|
|
pushd updated-homebrew-tap-repo > /dev/null
|
2023-02-08 22:17:06 +08:00
|
|
|
curl https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-homebrew.rb --output spring-boot-cli-${version}-homebrew.rb
|
2021-01-08 05:57:57 +08:00
|
|
|
rm spring-boot.rb
|
|
|
|
mv spring-boot-cli-*.rb spring-boot.rb
|
2021-08-26 00:20:13 +08:00
|
|
|
git config user.name "Spring Builds" > /dev/null
|
|
|
|
git config user.email "spring-builds@users.noreply.github.com" > /dev/null
|
2021-01-08 05:57:57 +08:00
|
|
|
git add spring-boot.rb > /dev/null
|
|
|
|
git commit -m "Upgrade to Spring Boot ${version}" > /dev/null
|
|
|
|
echo "DONE"
|
|
|
|
popd > /dev/null
|
2021-01-15 12:48:38 +08:00
|
|
|
fi
|