Skip to content

Commit 4836216

Browse files
committed
TUN-5895 run brew bump-formula-pr on release
1 parent 470e6c3 commit 4836216

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.teamcity/update-homebrew-core.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
if ! VERSION="$(git describe --tags --exact-match 2>/dev/null)" ; then
6+
echo "Skipping public release for an untagged commit."
7+
echo "##teamcity[buildStatus status='SUCCESS' text='Skipped due to lack of tag']"
8+
exit 0
9+
fi
10+
11+
if [[ "${HOMEBREW_GITHUB_API_TOKEN:-}" == "" ]] ; then
12+
echo "Missing GITHUB_API_TOKEN"
13+
exit 1
14+
fi
15+
16+
# "install" Homebrew
17+
git clone https://github.com/Homebrew/brew tmp/homebrew
18+
eval "$(tmp/homebrew/bin/brew shellenv)"
19+
brew update --force --quiet
20+
chmod -R go-w "$(brew --prefix)/share/zsh"
21+
22+
# bump formula pr
23+
brew bump-formula-pr cloudflared

cfsetup.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,10 @@ stretch: &stretch
192192
builddeps:
193193
- openssh-client
194194
- s3cmd
195+
- jq
195196
post-cache:
196197
- .teamcity/update-homebrew.sh
198+
- .teamcity/update-homebrew-core.sh
197199
github-message-release:
198200
build_dir: *build_dir
199201
builddeps:

0 commit comments

Comments
 (0)