Skip to content

Commit 8573b39

Browse files
committed
updated awscli run
1 parent d62f388 commit 8573b39

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ jobs:
2424
2525
- name: Install AWS CLI
2626
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y awscli
27+
if ! command -v aws &> /dev/null; then
28+
echo "AWS CLI not found. Installing..."
29+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
30+
unzip awscliv2.zip
31+
sudo ./aws/install
32+
else
33+
echo "AWS CLI already installed."
34+
fi
2935
3036
- name: Configure AWS credentials
3137
uses: aws-actions/configure-aws-credentials@v2

0 commit comments

Comments
 (0)