From 36bd074d84ba9d90a0aca9ef653c4304a8d2fc21 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 4 Oct 2019 04:18:24 +0200 Subject: [PATCH] install_latest_artifact: Make it work again We now have 2 artifacts the aab and apk --- scripts/install_latest_artifact.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_latest_artifact.sh b/scripts/install_latest_artifact.sh index 73d3d2d9..92a779dd 100755 --- a/scripts/install_latest_artifact.sh +++ b/scripts/install_latest_artifact.sh @@ -5,8 +5,8 @@ set -eu BUILD_NUM=`curl -s 'https://circleci.com/api/v1.1/project/github/GitJournal/GitJournal?limit=1&offset=0&filter=successful' | jq .[0] | jq -r .build_num` echo "CircleCI Buld Number: $BUILD_NUM" -URL=`curl -s https://circleci.com/api/v1.1/project/github/GitJournal/GitJournal/$BUILD_NUM/artifacts | jq .[0] | jq -r .url` -APK_LOCATION="/tmp/gitjournal.aab" +URL=`curl -s https://circleci.com/api/v1.1/project/github/GitJournal/GitJournal/$BUILD_NUM/artifacts | jq .[1] | jq -r .url` +APK_LOCATION="/tmp/gitjournal.apk" echo "Downloading $URL" curl "$URL" -o "$APK_LOCATION"