Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions setup-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ runs:
run: |
export PYENV_ROOT="$HOME/.pyenv"
echo "PYENV_ROOT=$HOME/.pyenv" >> $GITHUB_ENV

if [ ! -d "$PYENV_ROOT" ]; then

# compensating for cleanup failures
if [ "${{ runner.os }}" = "macOS" ]; then
rm -rf "$PYENV_ROOT"
echo " ==== installing pyenv at: $PYENV_ROOT"
curl https://pyenv.run | bash
else
echo " ==== pyenv directory found at: $PYENV_ROOT"
fi

export PATH="$PYENV_ROOT/bin:$PATH"
Expand Down