Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

ci: retry stapling the macOS DMG when Apple drops the connection

EtienneLescot8c45bcf42c3f
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3fe9c5cb7..3468db39e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -672,7 +672,15 @@ jobs:
- name: Staple notarization ticket
if: steps.signing.outputs.enabled == 'true'
- run: xcrun stapler staple "${{ steps.dmg.outputs.dmg_path }}"
+ # Apple's ticket lookup drops the connection now and then (error 68); retry it.
+ run: |
+ for attempt in 1 2 3 4 5; do
+ xcrun stapler staple "${{ steps.dmg.outputs.dmg_path }}" && exit 0
+ echo "Staple attempt $attempt failed, retrying in 30 s"
+ sleep 30
+ done
+ exit 1
+ timeout-minutes: 10
- name: Validate stapled DMG
if: steps.signing.outputs.enabled == 'true'