Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,16 @@ 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
[ "$attempt" -eq 5 ] && break
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'
Expand Down
Loading