[workflows]: Just update AWS CLI

This commit is contained in:
2025-03-15 01:34:10 +00:00
parent bc5e25d864
commit ea9dd2728a

View File

@ -79,12 +79,15 @@ jobs:
with: with:
python-version: '3.13' python-version: '3.13'
# ✅ Correct AWS CLI installation # ✅ Check if AWS CLI is installed and update it instead of reinstalling
- name: Install AWS CLI (Official AWS Method) - name: Check AWS CLI version
run: aws --version || echo "AWS CLI not found"
- name: Update AWS CLI
run: | run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip unzip -o awscliv2.zip
sudo ./aws/install sudo ./aws/install --update
- name: Verify AWS CLI installation - name: Verify AWS CLI installation
run: aws --version run: aws --version