Skip to content

Commit b9bf419

Browse files
workflows: fix aws cli installation
Signed-off-by: Patrick Stephens <[email protected]>
1 parent 8527f5c commit b9bf419

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/call-build-linux-packages.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ jobs:
163163
# For ubuntu map to codename using the disto-info list (CSV)
164164
run: |
165165
sudo apt-get update
166-
sudo apt-get install -y distro-info awscli
166+
sudo apt-get install -y distro-info
167+
sudo apt-get install -y awscli || sudo snap install aws-cli --classic
168+
167169
TARGET=${DISTRO%*.arm64v8}
168170
if [[ "$TARGET" == "ubuntu/"* ]]; then
169171
UBUNTU_CODENAME=$(cut -d ',' -f 1,3 < "/usr/share/distro-info/ubuntu.csv"|grep "${TARGET##*/}"|cut -d ',' -f 2)
@@ -224,7 +226,9 @@ jobs:
224226
timeout-minutes: 10
225227
run: |
226228
sudo apt-get update
227-
sudo apt-get install -y createrepo-c aptly awscli
229+
sudo apt-get install -y createrepo-c aptly
230+
sudo apt-get install -y awscli || sudo snap install aws-cli --classic
231+
shell: bash
228232
env:
229233
DEBIAN_FRONTEND: noninteractive
230234

0 commit comments

Comments
 (0)