forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.88 KB
/
Copy pathdesktop_recover_beta.yml
File metadata and controls
55 lines (51 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Retry Desktop Beta Promotion
# Manual retry for the same server-owned promotion Codemagic normally performs.
# It cannot create a build, waive signed-smoke evidence, or mutate Stable.
on:
workflow_dispatch:
inputs:
release_tag:
description: 'Exact signed v*-macos candidate tag to retry on Beta'
required: true
type: string
confirm:
description: 'Type recover-beta to retry this exact candidate'
required: true
type: string
reason:
description: 'Why automatic Beta promotion needs recovery'
required: true
type: string
permissions:
contents: read
jobs:
validate-recovery:
runs-on: ubuntu-latest
steps:
- name: Record the bounded recovery request
env:
RELEASE_TAG: ${{ inputs.release_tag }}
CONFIRM: ${{ inputs.confirm }}
REASON: ${{ inputs.reason }}
run: |
set -euo pipefail
test "$CONFIRM" = recover-beta || { echo 'confirm must be exactly: recover-beta' >&2; exit 1; }
printf '%s\n' "$RELEASE_TAG" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+\+[1-9][0-9]*-macos$' || {
echo 'release_tag must be an exact immutable macOS candidate tag' >&2; exit 1;
}
test -n "${REASON//[[:space:]]/}" || { echo 'reason is required' >&2; exit 1; }
{
echo '### Beta recovery request'
echo
echo "- Candidate: \`$RELEASE_TAG\`"
echo "- Requested by: \`${{ github.actor }}\`"
echo "- Reason: $REASON"
echo '- Admission, signed-smoke evidence, pointer generation, and pause state remain server-verified.'
} >> "$GITHUB_STEP_SUMMARY"
retry-beta-promotion:
needs: validate-recovery
permissions:
contents: read
uses: ./.github/workflows/desktop_promote_beta.yml
with:
release_tag: ${{ inputs.release_tag }}