GHA CI: retry action on failure

PR #20641.
This commit is contained in:
Chocobo1 2024-04-01 19:59:26 +08:00 committed by GitHub
parent 2fe91a6c8f
commit 1d221c22e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,8 +124,16 @@ jobs:
if [ "${{ matrix.qbt_gui }}" = "GUI=OFF" ]; then
appName="qbittorrent-nox"
fi
# package
pushd build
macdeployqt "$appName.app" -dmg -no-strip
PACKAGE_RETRY=0
while [ "$PACKAGE_RETRY" -lt "3" ]; do
if macdeployqt "$appName.app" -dmg -no-strip; then
break
fi
sleep 5s
PACKAGE_RETRY=$((PACKAGE_RETRY + 1))
done
popd
# prepare upload folder
mkdir upload