[ci] Don't mask push outputs (CircleCI masks secrets anyway)

This commit is contained in:
JAremko 2021-07-06 01:08:23 +03:00 committed by Eugene Yaremenko
parent 34f739649c
commit 6f8d6d5b3a
3 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@
##
## License: GPLv3
export GITHUB_TOKEN=$UPD_BOT_GIT_TK
echo_headline "Opening PR to ${UPD_BOT_LOGIN}/${UPD_BOT_REPO} repo"
echo "[bot] Built-in auto-update" > msg
echo >> msg

View File

@ -10,6 +10,7 @@
##
## License: GPLv3
export GITHUB_TOKEN=$UPD_BOT_GIT_TK
echo_headline "Opening PR to ${UPD_BOT_LOGIN}/${UPD_BOT_REPO} repo"
echo "[bot] Documentation fixes" > msg
echo >> msg

View File

@ -12,6 +12,7 @@
echo_headline "Creating fork under bot account"
export GITHUB_TOKEN=$UPD_BOT_GIT_TK
git checkout -b "${PUBLISH}"
hub fork
if [ $? -ne 0 ]; then
echo "hub fork failed"
@ -21,8 +22,7 @@ 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
# prevent token leak ^^^^^^^^^^^^^^
hub push -f "${UPD_BOT_LOGIN}" "${PUBLISH}"
if [ $? -ne 0 ]; then
echo "hub push failed"
exit 2