| ... | ... | @@ -195,7 +195,9 @@ jobs: |
| 195 | 195 | run: | |
| 196 | 196 | message="$(git log -1 --pretty=%s | head -c 120) ($(git rev-parse --short=9 HEAD))" |
| 197 | 197 | 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)')" |
| 199 | 201 | matching="$(eas build:list --platform "$platform" --build-profile production --status finished --fingerprint-hash "$hash" --limit 1 --json --non-interactive | jq 'length')" |
| 200 | 202 | if [ "$matching" -gt 0 ]; then |
| 201 | 203 | eas update \ |