Skip to content

Commit

Permalink
Fix OSS integration tests for docs (#3663) (#20590)
Browse files Browse the repository at this point in the history
+ In "Docs PR check mode" stop before "yarn deploy"
  • Loading branch information
tkorenko committed Dec 16, 2022
1 parent 4625e8b commit 228a524
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/bin/deploy_docusaurus
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ if ! yarn build; then
exit 1
fi

# "check PR mode" -- we run "yarn build" and stop before "yarn deploy"
if [ "${SKIP_DEPLOY}" = "yes" ]; then
echo -e "$blue_text""Check mode is ON: skipipping yarn deploy && git push CNAME to repo!\n\n""$default_text"
exit 0
fi

# Check tty for local/remote deploys (we expect cloud to be non-interactive)
# results like /dev/ttys000 || not a tty
if test "$(tty)" == "not a tty"; then
Expand All @@ -95,8 +101,6 @@ if test "$(tty)" == "not a tty"; then
else
yarn run deploy
fi
YARN_DEPLOY_EXIT_STATUS=$?


# Git makes more sense from /
cd ..
Expand Down

0 comments on commit 228a524

Please sign in to comment.