[ci] unmask hub push logs

This commit is contained in:
JAremko 2021-07-12 18:08:20 +03:00 committed by Eugene Yaremenko
parent af345fd4c1
commit 97ad6bad3f

View file

@ -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