Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

test:
name: Test
runs-on: ubuntu-24.04
runs-on: macos-15
timeout-minutes: 10
steps:
- name: Checkout
Expand Down
29 changes: 28 additions & 1 deletion .github/workflows/mobile-eas-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ on:
description: "OTA update message (mode=update only)"
required: false
type: string
sha:
description: "Exact fork/integration SHA (blank uses its current tip)"
required: false
type: string

concurrency:
group: mobile-eas-production
cancel-in-progress: false

jobs:
production:
Expand Down Expand Up @@ -56,8 +64,27 @@ jobs:
if: steps.expo-token.outputs.present == 'true'
uses: actions/checkout@v6
with:
ref: fork/integration
fetch-depth: 0

- id: source
name: Resolve approved integration source
if: steps.expo-token.outputs.present == 'true'
env:
REQUESTED_SHA: ${{ inputs.sha }}
run: |
integration_sha="$(git rev-parse HEAD)"
target_sha="${REQUESTED_SHA:-$integration_sha}"
if [[ ! "$target_sha" =~ ^[0-9a-f]{40}$ ]]; then
echo "sha must be an exact 40-character commit SHA" >&2
exit 1
fi
git fetch origin "$target_sha"
git merge-base --is-ancestor "$target_sha" "$integration_sha"
git checkout --detach "$target_sha"
test "$(git rev-parse HEAD)" = "$target_sha"
echo "sha=$target_sha" >> "$GITHUB_OUTPUT"

- name: Setup Vite+
if: steps.expo-token.outputs.present == 'true'
uses: voidzero-dev/setup-vp@v1
Expand Down Expand Up @@ -109,5 +136,5 @@ jobs:
--channel production \
--environment production \
--platform ${{ inputs.platform }} \
--message "${{ inputs.message || format('Production OTA ({0})', github.sha) }}" \
--message "${{ inputs.message || format('Production OTA ({0})', steps.source.outputs.sha) }}" \
--non-interactive
Loading