Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit c2487cf

Browse files
authored
ci: publish docs debug (#10638) (#10660)
1 parent e0141f8 commit c2487cf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,4 @@ publish-docs:
260260
- scripts/gitlab/publish-docs.sh
261261
tags:
262262
- linux-docker
263+
allow_failure: true

scripts/gitlab/publish-docs.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ commit_files() {
5151

5252
upload_files() {
5353
echo "__________Upload files__________"
54-
git push -q origin HEAD
55-
git push -q -f --tags
54+
# this version of git (2.7.4) will dump the token on failure
55+
git push -q origin HEAD 2>&1 \
56+
| sed -r "s|(${GITHUB_USER}):[a-f0-9]+@|\1:REDACTED@|g"
57+
git push -q -f --tags 2>&1 \
58+
| sed -r "s|(${GITHUB_USER}):[a-f0-9]+@|\1:REDACTED@|g"
5659
}
5760

5861
RPC_TRAITS_DIR="rpc/src/v1/traits"

0 commit comments

Comments
 (0)