File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ VS Code v1.56.1
7575
7676### Development
7777
78- - fix(ci): update brew-bump.sh to update remote first #0000 @jsjoeio
78+ - fix(ci): update brew-bump.sh to update remote first #3438 @jsjoeio
7979
8080## 3.10.1
8181
Original file line number Diff line number Diff line change @@ -5,9 +5,36 @@ main() {
55 cd " $( dirname " $0 " ) /../.."
66 # Only sourcing this so we get access to $VERSION
77 source ./ci/lib.sh
8+
9+ # NOTE: we need to make sure cdrci/homebrew-core
10+ # is up-to-date
11+ # otherwise, brew bump-formula-pr will use an
12+ # outdated base
13+ echo " Cloning cdrci/homebrew-core"
14+ git clone https://github.com/cdrci/homebrew-core.git
15+
16+ echo " Changing into homebrew-core directory"
17+ cd homebrew-core && pwd
18+
19+ echo " Adding Homebrew/homebrew-core as $( upstream) "
20+ git remote add upstream https://github.com/Homebrew/homebrew-core.git
21+
22+ echo " Fetching upstream commits..."
23+ git fetch upstream
24+
25+ echo " Merging in latest changes"
26+ git merge upstream/master
27+
28+ echo " Pushing changes to cdrci/homebrew-core fork on GitHub"
29+ git push origin master
30+
831 # Find the docs for bump-formula-pr here
932 # https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18
1033 brew bump-formula-pr --force --version=" ${VERSION} " code-server --no-browse --no-audit
34+
35+ # Clean up and remove homebrew-core
36+ cd ..
37+ rm -rf homebrew-core
1138}
1239
1340main " $@ "
You can’t perform that action at this time.
0 commit comments