Skip to content

Commit

Permalink
ci: retry
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarkhanzadian committed Sep 22, 2024
1 parent 3008974 commit 24559d3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/actions/eas-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,16 @@ runs:
# No wait on simulator version build of the app if we are on a dev branch
eas build --platform ios --profile=simulator --non-interactive --no-wait
else
# capture the output of a command so it can be retrieved with ret
cap () { tee /tmp/capture.out; }
# set temporary command output
setTmpOutput () { tee /tmp/capture.out; }
# return the output of the most recent command that was captured by cap
ret () { cat /tmp/capture.out; }
# get temporary command output
getTmpOutput () { 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/<should-succeed>" | cap
eas build --platform ios --profile=simulator --non-interactive | setTmpOutput
# Last line of the build output is the link to the expo build
UNSAFE_BUILD_LINK=$(ret | tail -n 1)
UNSAFE_BUILD_LINK=$(getTmpOutput | tail -n 1)
if [[ $UNSAFE_BUILD_LINK == *"https://expo.dev/accounts/leather-wallet/projects/leather-wallet-mobile/builds/"* ]]; then
echo "Found build link!"
Expand Down

0 comments on commit 24559d3

Please sign in to comment.