From b1d412f43080038ee6e58f54d6ed22e1bc49dd09 Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Fri, 20 Dec 2024 07:43:09 -0500 Subject: [PATCH 1/2] workflows: install svn when `brew fetch` needs it --- .github/workflows/scheduled.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index bafa810644d1c..af57894aa628e 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -124,6 +124,12 @@ jobs: brew install curl echo "HOMEBREW_FORCE_BREWED_CURL=1" >>"${GITHUB_ENV}" + - name: Install and use Homebrew svn if needed + run: | + if brew ruby -e 'puts Formula[ARGV.first].deps.any? { |d| d.name == "subversion" && d.implicit? }' "$FORMULA"; then + brew install svn + fi + - name: Check formula source is not archived. id: archived run: brew audit --online --skip-style --only github_repository_archived,gitlab_repository_archived "$FORMULA" From 1b431fc0bf91a73432b399940ba1c3d711a4d8b5 Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Fri, 20 Dec 2024 10:33:26 -0500 Subject: [PATCH 2/2] Update scheduled.yml Co-authored-by: Carlo Cabrera --- .github/workflows/scheduled.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index af57894aa628e..18043a2d55811 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -126,7 +126,7 @@ jobs: - name: Install and use Homebrew svn if needed run: | - if brew ruby -e 'puts Formula[ARGV.first].deps.any? { |d| d.name == "subversion" && d.implicit? }' "$FORMULA"; then + if brew ruby -e 'exit 1 if Formula[ARGV.first].deps.none? { |d| d.name == "subversion" && d.implicit? }' "$FORMULA"; then brew install svn fi