|
| 1 | +name: Notary status check |
| 2 | + |
| 3 | +# One-off diagnostic workflow. Queries Apple's notary service to see if your |
| 4 | +# submissions are queued, in progress, accepted, or rejected. Useful when a |
| 5 | +# notarization seems "hung" — most often the queue itself, especially on a |
| 6 | +# brand-new Apple Developer account. |
| 7 | +# |
| 8 | +# Run via: Actions tab -> "Notary status check" -> Run workflow. |
| 9 | +# Inputs are optional; if you provide a submission ID, it also fetches that |
| 10 | +# submission's full Apple log. |
| 11 | +# |
| 12 | +# Safe to delete after diagnosis. |
| 13 | + |
| 14 | +on: |
| 15 | + workflow_dispatch: |
| 16 | + inputs: |
| 17 | + submission_id: |
| 18 | + description: 'Optional: submission UUID to fetch full Apple log for' |
| 19 | + required: false |
| 20 | + default: '' |
| 21 | + |
| 22 | +jobs: |
| 23 | + status: |
| 24 | + runs-on: macos-latest |
| 25 | + steps: |
| 26 | + - name: List recent notarization submissions |
| 27 | + env: |
| 28 | + APPLE_ID: ${{ secrets.APPLE_ID }} |
| 29 | + APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} |
| 30 | + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} |
| 31 | + run: | |
| 32 | + set -euo pipefail |
| 33 | + echo "::group::Submission history (most recent first)" |
| 34 | + xcrun notarytool history \ |
| 35 | + --apple-id "$APPLE_ID" \ |
| 36 | + --password "$APPLE_APP_SPECIFIC_PASSWORD" \ |
| 37 | + --team-id "$APPLE_TEAM_ID" |
| 38 | + echo "::endgroup::" |
| 39 | +
|
| 40 | + - name: Inspect specific submission (if id provided) |
| 41 | + if: ${{ inputs.submission_id != '' }} |
| 42 | + env: |
| 43 | + APPLE_ID: ${{ secrets.APPLE_ID }} |
| 44 | + APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} |
| 45 | + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} |
| 46 | + SUBMISSION_ID: ${{ inputs.submission_id }} |
| 47 | + run: | |
| 48 | + set -euo pipefail |
| 49 | + echo "::group::Submission info" |
| 50 | + xcrun notarytool info "$SUBMISSION_ID" \ |
| 51 | + --apple-id "$APPLE_ID" \ |
| 52 | + --password "$APPLE_APP_SPECIFIC_PASSWORD" \ |
| 53 | + --team-id "$APPLE_TEAM_ID" |
| 54 | + echo "::endgroup::" |
| 55 | + echo "::group::Apple's processing log for this submission" |
| 56 | + xcrun notarytool log "$SUBMISSION_ID" \ |
| 57 | + --apple-id "$APPLE_ID" \ |
| 58 | + --password "$APPLE_APP_SPECIFIC_PASSWORD" \ |
| 59 | + --team-id "$APPLE_TEAM_ID" || true |
| 60 | + echo "::endgroup::" |
0 commit comments