Skip to content

Commit

Permalink
Show git push logs for docc uploading (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
OdNairy authored May 17, 2023
1 parent fa73d26 commit 2f5e0b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/release/create-docs-prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ maps_ios_upload_docs() {
git commit -m "Add documentation for v$VERSION" --quiet

info "Push"
git push --force --quiet
git push --force

if [ "$STAGING_ONLY" = true ]; then
git push --force
else
VERSION_BRANCH_NAME="docs/$VERSION"
git checkout -b "$VERSION_BRANCH_NAME"
git push --set-upstream origin "$VERSION_BRANCH_NAME" --force --quiet
git push --set-upstream origin "$VERSION_BRANCH_NAME" --force
fi

if [ "$EXTRA_EMPTY_COMMIT" = true ]; then
info "Add empty commit to trigger CI"
sleep 10 # Avoid CI sometimes cancelling the "Trigger CI" build
git commit --allow-empty -m "Trigger CI" --quiet
git push --force --quiet
git push --force
fi

popd > /dev/null
Expand Down Expand Up @@ -140,7 +140,7 @@ ios_sdk_update_versions() {
git commit -m "Add Maps SDK for iOS ${VERSION} release" --quiet

info "Push"
git push --set-upstream origin "${IOS_SDK_BRANCH_NAME}" --force --quiet
git push --set-upstream origin "${IOS_SDK_BRANCH_NAME}" --force
}

ios_sdk_open_pr() {
Expand Down Expand Up @@ -198,4 +198,5 @@ case "${flag}" in
esac
done

set -x
main

0 comments on commit 2f5e0b9

Please sign in to comment.