Skip to content

Commit 13ac38a

Browse files
Moisancarlocab
authored andcommitted
workflows: use brew deps to detect if subversion is required
1 parent 15c6cc4 commit 13ac38a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/scheduled.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ jobs:
124124
brew install curl
125125
echo "HOMEBREW_FORCE_BREWED_CURL=1" >>"${GITHUB_ENV}"
126126
127-
- name: Install and use Homebrew svn if needed
127+
- name: Install Homebrew subversion if needed for downloading sources
128128
run: |
129-
if brew ruby -e 'exit 1 if Formula[ARGV.first].deps.none? { |d| d.name == "subversion" && d.implicit? }' "$FORMULA"; then
130-
brew install svn
129+
if brew deps --include-implicit -1 $FORMULA | grep -q subversion; then
130+
brew install subversion
131131
fi
132132
133133
- name: Check formula source is not archived.

0 commit comments

Comments
 (0)