[ci] Don't mask push outputs (CircleCI masks secrets anyway)
This commit is contained in:
parent
34f739649c
commit
6f8d6d5b3a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue