[workflows]: Just update AWS CLI
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Reference in New Issue
Block a user