File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,14 @@ jobs:
379
379
- uses : actions/checkout@v4
380
380
with :
381
381
fetch-depth : 0
382
+ - name : Fetch homebrew-core commit messages
383
+ uses : actions/checkout@v4
384
+ with :
385
+ # needed by ./hack/brew-install-version.sh
386
+ repository : homebrew/homebrew-core
387
+ path : homebrew-core
388
+ fetch-depth : 0
389
+ filter : tree:0
382
390
- uses : actions/setup-go@v5
383
391
with :
384
392
go-version : 1.23.x
@@ -387,9 +395,6 @@ jobs:
387
395
with :
388
396
template : https://raw.githubusercontent.com/lima-vm/lima/${{ matrix.oldver }}/examples/ubuntu-lts.yaml
389
397
- name : Install test dependencies
390
- env :
391
- # brew-install-version.sh calls `gh`, which needs the token
392
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
393
398
run : |
394
399
brew install bash coreutils
395
400
# QEMU 9.1.0 seems to break on GitHub runners, both on Monterey and Ventura
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This script only works for formulas in the homebrew-core
2
+ # This script only works for formulas in the homebrew-core.
3
+ # It assumes the homebrew-core has been checked out into ./homebrew-core.
4
+ # It only needs commit messages, so the checkout can be filtered with tree:0.
3
5
4
6
set -eu -o pipefail
5
7
@@ -15,8 +17,8 @@ if ! brew tap | grep -q "^${TAP}\$"; then
15
17
brew tap-new " $TAP "
16
18
fi
17
19
18
- # Get the commit id for the commit that updated this bottle
19
- SHA=$( gh search commits --repo homebrew/homebrew-core " ${FORMULA} : update ${VERSION} bottle" --json sha --jq " last|.sha " )
20
+ # Get the latest commit id for the commit that updated this bottle
21
+ SHA=$( git -C homebrew-core log --max-count 1 --grep " ^ ${FORMULA} : update ${VERSION} bottle" --format= " %H " )
20
22
if [[ -z $SHA ]]; then
21
23
echo " ${FORMULA} ${VERSION} not found"
22
24
exit 1
You can’t perform that action at this time.
0 commit comments