[ci] unmask hub push logs
This commit is contained in:
parent
af345fd4c1
commit
97ad6bad3f
1 changed files with 6 additions and 1 deletions
|
@ -26,8 +26,13 @@ fork_url="https://${UPD_BOT_LOGIN}:${UPD_BOT_GIT_TK}"
|
|||
fork_url+="@github.com/${UPD_BOT_LOGIN}/${UPD_BOT_REPO}.git"
|
||||
git remote set-url "${UPD_BOT_LOGIN}" "${fork_url}"
|
||||
echo_headline "Pushing changes"
|
||||
hub push -f "${UPD_BOT_LOGIN}" "${PUBLISH}" > /dev/null 2>&1
|
||||
# hub push -f "${UPD_BOT_LOGIN}" "${PUBLISH}" > /dev/null 2>&1
|
||||
# prevents token leak ^^^^^^^^^^^^^^
|
||||
# NOTE: CircleCI masks environment variables from web GUI thingy
|
||||
# so in this case bot token shouldn't leak. But be careful.
|
||||
# I had to unmask the command output because it's too hard to debug
|
||||
# without logs - a lot of different things may fail.
|
||||
hub push -f "${UPD_BOT_LOGIN}" "${PUBLISH}" > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "hub push failed"
|
||||
exit 2
|
||||
|
|
Reference in a new issue