Skip to content

Commit 73b05b0

Browse files
fix: require sudo only if required command is not present in the system
1 parent a326cdc commit 73b05b0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ runs:
1919
- name: Ensure system dependencies are installed
2020
shell: bash
2121
run: |
22-
sudo yum install -y tar gzip which
22+
command -v tar &>/dev/null || sudo yum install -y tar
23+
command -v gzip &>/dev/null || sudo yum install -y gzip
24+
command -v which &>/dev/null || sudo yum install -y which
2325
2426
- name: Install uv
2527
shell: bash
2628
run: |
2729
installation_directory="${{ github.action_path }}/.setup-python-amazon-linux/uv"
2830
echo "Installing uv.. installation_directory=${installation_directory}"
29-
uv_version="0.9.13"
31+
uv_version="0.11.11"
3032
curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | UV_UNMANAGED_INSTALL="${installation_directory}" bash --login
3133
echo "${installation_directory}" >> "${GITHUB_PATH}"
3234

0 commit comments

Comments
 (0)