Skip to content

Commit 0907fdf

Browse files
juliusmarmingecodex
andcommitted
fix(mobile): parse EAS fingerprint JSON
Co-authored-by: codex <[email protected]>
1 parent d440442 commit 0907fdf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/mobile-eas-production.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ jobs:
195195
run: |
196196
message="$(git log -1 --pretty=%s | head -c 120) ($(git rev-parse --short=9 HEAD))"
197197
for platform in ios android; do
198-
hash="$(eas fingerprint:generate --platform "$platform" --environment production --json --non-interactive | jq -r '.hash')"
198+
# eas-cli prints an environment-loaded notice to stdout before the
199+
# JSON even with --json, so discard everything before the document.
200+
hash="$(eas fingerprint:generate --platform "$platform" --environment production --json --non-interactive | sed -n '/^{/,$p' | jq -er '.hash | select(type == "string" and length > 0)')"
199201
matching="$(eas build:list --platform "$platform" --build-profile production --status finished --fingerprint-hash "$hash" --limit 1 --json --non-interactive | jq 'length')"
200202
if [ "$matching" -gt 0 ]; then
201203
eas update \

0 commit comments

Comments
 (0)