-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: add brew bump-formula-pr to the release process (#5273)
clean up release scripts a bit
- Loading branch information
Showing
7 changed files
with
34 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# | ||
# Updates the Tilt repo with the latest version info. | ||
# | ||
# Usage: | ||
# scripts/release-update-homebrew-core.sh $VERSION | ||
# where VERSION is of the form v0.1.0 | ||
|
||
set -euo pipefail | ||
|
||
if [[ "${GITHUB_TOKEN-}" == "" ]]; then | ||
echo "Missing GITHUB_TOKEN" | ||
exit 1 | ||
fi | ||
|
||
VERSION=${1//v/} | ||
VERSION_PATTERN="^[0-9]+\\.[0-9]+\\.[0-9]+$" | ||
if ! [[ $VERSION =~ $VERSION_PATTERN ]]; then | ||
echo "Version did not match expected pattern. Actual: $VERSION" | ||
exit 1 | ||
fi | ||
|
||
git config --global user.email "it@tilt.dev" | ||
git config --global user.name "Tilt Dev" | ||
|
||
# send the brew team a PR to upgrade homebrew-core | ||
brew bump-formula-pr --version="$VERSION" tilt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.