From 845594fbd24d8d4d3129360fe0f190718fcb6ff0 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 27 Jan 2024 01:00:58 -0500 Subject: [PATCH] and again --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a5a1fce2..6aac414cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -328,7 +328,17 @@ jobs: cd .. echo "creating new image" - hdiutil create -srcfolder new -volname Furnace -format UDZO furnace.dmg + retries=0 + while ! hdiutil create -srcfolder new -volname Furnace -format UDZO furnace.dmg; do + echo "TRYING AGAIN..." + retries=$((retries+1)) + if [ $retries -gt 5 ]; then + echo "OH NO, WE'VE FAILED..." + exit 1 + break + fi + sleep 5 + done mv furnace.dmg ../${{ steps.package-identify.outputs.filename }} popd