diff --git a/.github/actions/eas-deploy/action.yml b/.github/actions/eas-deploy/action.yml index 41dcb5b5f..ccfe060bb 100644 --- a/.github/actions/eas-deploy/action.yml +++ b/.github/actions/eas-deploy/action.yml @@ -59,12 +59,14 @@ runs: # return the output of the most recent command that was captured by cap ret () { cat /tmp/capture.out; } - # eas build --platform ios --profile=simulator --non-interactive | cap - echo "https://expo.dev/accounts/leather-wallet/projects/leather-wallet-mobile/builds/" | cap + eas build --platform ios --profile=simulator --non-interactive | cap + # echo "https://expo.dev/accounts/leather-wallet/projects/leather-wallet-mobile/builds/" | cap + # Last line of the build output is the link to the expo build UNSAFE_BUILD_LINK=$(ret | tail -n 1) + if [[ $UNSAFE_BUILD_LINK == *"https://expo.dev/accounts/leather-wallet/projects/leather-wallet-mobile/builds/"* ]]; then - echo "FOUND LINK" + echo "Found build link!" echo "BUILD_LINK=$UNSAFE_BUILD_LINK" >> $GITHUB_OUTPUT else echo "No build link!" @@ -89,7 +91,7 @@ runs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: BUILD_LINK + body: "Expo simulator build link" + BUILD_LINK }) - name: 🛫 Build for production 🛫