GHA CI: revise packaging failure detection

Fix up 1d221c22e4.
PR #20664.
This commit is contained in:
Chocobo1 2024-04-09 14:22:05 +08:00
parent db384896b8
commit 749746e812
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -142,11 +142,13 @@ jobs:
pushd build
PACKAGE_RETRY=0
while [ "$PACKAGE_RETRY" -lt "3" ]; do
if macdeployqt "$appName.app" -dmg -no-strip; then
macdeployqt "$appName.app" -dmg -no-strip
if [ -f "$appName.dmg" ]; then
break
fi
sleep 5s
sleep 5
PACKAGE_RETRY=$((PACKAGE_RETRY + 1))
echo "Retry $PACKAGE_RETRY..."
done
popd
# prepare upload folder