File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ jobs:
26
26
27
27
- name : Install AWS SAM CLI
28
28
run : |
29
- cd /tmp
30
- wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
31
- unzip aws-sam-cli-linux-x86_64.zip -d aws-sam-cli-linux-x86_64
32
- sudo ./aws-sam-cli-linux-x86_64/install
33
- sam --version
29
+ if [ ! $(command -v sam) ]; then
30
+ cd /tmp
31
+ wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
32
+ unzip aws-sam-cli-linux-x86_64.zip -d aws-sam-cli-linux-x86_64 -q
33
+ sudo ./aws-sam-cli-linux-x86_64/install
34
+ sam --version
35
+ fi
34
36
35
37
- name : Test deploy.sh script
36
38
run : ./deploy.sh
62
64
run : |
63
65
cd /tmp
64
66
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
65
- unzip aws-sam-cli-linux-x86_64.zip -d aws-sam-cli-linux-x86_64
67
+ unzip aws-sam-cli-linux-x86_64.zip -d aws-sam-cli-linux-x86_64 -q
66
68
sudo ./aws-sam-cli-linux-x86_64/install
67
69
sam --version
68
70
You can’t perform that action at this time.
0 commit comments