From d6e308c57856426461693c256adca6c4fbf84cc6 Mon Sep 17 00:00:00 2001 From: Christopher Fujino Date: Wed, 19 Aug 2020 18:16:05 -0700 Subject: [PATCH] Don't fail docs-linux on release branches (#64203) --- dev/bots/docs.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index e656b204e11..5fca1520900 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -9,7 +9,7 @@ function deploy { local total_tries="$1" local remaining_tries=$(($total_tries - 1)) shift - while [[ "$remaining_tries" > 0 ]]; do + while [[ "$remaining_tries" -gt 0 ]]; do (cd "$FLUTTER_ROOT/dev/docs" && firebase --debug deploy --token "$FIREBASE_TOKEN" --project "$@") && break remaining_tries=$(($remaining_tries - 1)) echo "Error: Unable to deploy documentation to Firebase. Retrying in five seconds... ($remaining_tries tries left)" @@ -103,7 +103,7 @@ function deploy_docs() { ;; *) >&2 echo "Docs deployment cannot be run on the $CIRRUS_BRANCH branch." - exit 1 + exit 0 esac } @@ -160,10 +160,11 @@ if [[ -d "$FLUTTER_PUB_CACHE" ]]; then fi generate_docs +# Skip publishing docs for PRs and release candidate branches if [[ -n "$CIRRUS_CI" && -z "$CIRRUS_PR" ]]; then - (cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip) - # TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646) - # (cd "$FLUTTER_ROOT/dev/docs"; create_docset) - (cd "$FLUTTER_ROOT/dev/docs"; move_offline_into_place) - deploy_docs + (cd "$FLUTTER_ROOT/dev/docs"; create_offline_zip) + # TODO(tvolkert): re-enable (https://github.com/flutter/flutter/issues/60646) + # (cd "$FLUTTER_ROOT/dev/docs"; create_docset) + (cd "$FLUTTER_ROOT/dev/docs"; move_offline_into_place) + deploy_docs fi