Skip to content

Commit b9b9c2f

Browse files
committed
Stop reinstalling Homebrew, update and upgrade instead
1 parent 9da568b commit b9b9c2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,14 @@ runs:
7777
shell: bash
7878
if: inputs.install-python == 'true' && runner.os == 'macOS' && inputs.homebrew-python == 'true'
7979
run: |
80-
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" || true
81-
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
80+
brew update
81+
brew upgrade
8282
brew uninstall --force --ignore-dependencies 'python@${{ inputs.python-version }}' || true
8383
brew install --overwrite 'python@${{ inputs.python-version }}'
8484
echo "/usr/local/opt/python@${{ inputs.python-version }}/Frameworks/Python.framework/Versions/${{ inputs.python-version }}/bin" >> $GITHUB_PATH
8585
echo "/usr/local/opt/python@${{ inputs.python-version }}/libexec/bin" >> $GITHUB_PATH
8686
echo "/usr/local/opt/python@${{ inputs.python-version }}/bin" >> $GITHUB_PATH
87+
brew cleanup
8788
8889
- name: Python Pre-VENV Check
8990
shell: bash

0 commit comments

Comments
 (0)