feat: break force the uploads (#902)

This commit is contained in:
Baptiste Augrain 2021-11-06 12:03:44 +01:00 committed by GitHub
parent 38810539a7
commit 6acd2fbfe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,19 @@ do
if [[ -f "${FILE}" ]] && [[ "${FILE}" != *.sha1 ]] && [[ "${FILE}" != *.sha256 ]]; then
echo "Uploading '${FILE}'"
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
if [[ $? != 0 ]]; then
while true
do
gh release upload --clobber "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
if [[ $? == 0 ]]; then
break
fi
sleep 30
done
fi
fi
done