trying to remove blocking directory
This commit is contained in:
@@ -229,9 +229,22 @@ jobs:
|
||||
set -euo pipefail
|
||||
|
||||
export PYENV_ROOT="${GITHUB_WORKSPACE}/.pyenv"
|
||||
|
||||
# Remove any leftover pyenv directories that block installation
|
||||
if [ -d "$PYENV_ROOT" ]; then
|
||||
echo "Removing existing workspace pyenv: $PYENV_ROOT"
|
||||
rm -rf "$PYENV_ROOT"
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.pyenv" ]; then
|
||||
echo "Removing existing home pyenv: $HOME/.pyenv"
|
||||
rm -rf "$HOME/.pyenv"
|
||||
fi
|
||||
|
||||
mkdir -p "$PYENV_ROOT"
|
||||
|
||||
echo "Downloading pyenv installer and running it"
|
||||
|
||||
wget -qO /tmp/pyenv_install.sh https://pyenv.run
|
||||
chmod +x /tmp/pyenv_install.sh
|
||||
bash /tmp/pyenv_install.sh
|
||||
|
||||
Reference in New Issue
Block a user