Skip to content

Commit

Permalink
Give a chance for download_all_github_artifacts.py to fail and to try…
Browse files Browse the repository at this point in the history
… again, without breaking the release script.

Previously any error in download_all_github_artifacts.py was ignored and the script was continuing (without success ofc).
  • Loading branch information
bmarty committed Oct 25, 2024
1 parent 604dba7 commit 5b06680
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tools/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,24 @@ targetPath="./tmp/Element/${version}"
printf "\n================================================================================\n"
printf "Downloading the artifacts...\n"

python3 ./tools/github/download_all_github_artifacts.py \
ret=1

while [[ $ret -ne 0 ]]; do
python3 ./tools/github/download_all_github_artifacts.py \
--token "${gitHubToken}" \
--runUrl "${runUrl}" \
--directory "${targetPath}"

ret=$?
if [[ $ret -ne 0 ]]; then
read -p "Error while downloading the artifacts. You may want to fix the issue and retry. Retry (yes/no) default to yes? " doRetry
doRetry=${doRetry:-yes}
if [ "${doRetry}" == "no" ]; then
exit 1
fi
fi
done

printf "\n================================================================================\n"
printf "Unzipping the F-Droid artifact...\n"

Expand Down

0 comments on commit 5b06680

Please sign in to comment.