Skip to content

Commit

Permalink
Fail when the Vercel URL is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jun 21, 2023
1 parent 382f0a3 commit 3cb0a99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,13 @@ jobs:
STATUS=$(echo -n "$RES" | jq -r '.status')
SHA=$(echo -n "$RES" | jq -r '.meta.githubCommitSha')
if [ -z "$SHA" ] || [ -z "$STATUS" ]; then
echo -e "\nError the JSON response is missing expected fields:\n\n$RES\n"
exit 5
fi
if [ "$SHA" == '${{ env.COMMIT_SHA }}' ] && [ "$STATUS" == 'READY' ]; then
exit
exit 0
fi
echo -e '\nWait for the Storybook deployment...\n\n'
Expand Down

0 comments on commit 3cb0a99

Please sign in to comment.