Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
g1t
public
Star
0
Overview
Code
Issues
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
The mobile build workflow asks Expo's API without a token first and says what it answered, so a runner whose network Expo refuses (a bare 403, where a bad token gets 'The bearer token is invalid') fails with that, not 'GraphQL request failed'.
syntaqx
committed
yesterday
Parent
f1969f3
Browse files
6f433f8a2bc8
1
file
+5
−0
0/1 viewed
Collapse all
Unified
Split
.g1t/workflows/mobile-build.yml
+5
−0
View
Blame
Viewed
63
63
run: |
64
64
# A token pasted with a newline breaks the request's header.
65
65
export EXPO_TOKEN="$(printf %s "$EXPO_TOKEN" | tr -d '[:space:]')"
66
+
# Without a token Expo answers 200; a bare 403 is its edge refusing this network.
67
+
code="$(curl -s -o /dev/null -w '%{http_code}' -X POST https://api.expo.dev/graphql \
68
+
-H 'Content-Type: application/json' -d '{"query":"{ meUserActor { id } }"}')"
69
+
echo "api.expo.dev answers this runner with $code"
70
+
if [ "$code" = 403 ]; then echo "::error::Expo refuses requests from this runner's network"; exit 1; fi
66
71
npx --yes eas-cli@24.12.1 whoami
67
72
npx --yes eas-cli@24.12.1 build --platform android --profile "$PROFILE" \
68
73
--non-interactive --wait --json > build.json