[ci] set bot repo via env var
This commit is contained in:
parent
7882913ee2
commit
2dafdb090b
|
@ -47,14 +47,14 @@ if [ $? -ne 0 ]; then
|
|||
exit 2
|
||||
fi
|
||||
fork_url="https://${UPD_BOT_LOGIN}:${UPD_BOT_GIT_TK}"
|
||||
fork_url+="@github.com/${UPD_BOT_LOGIN}/${PUBLISH}.git"
|
||||
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}" "${CIRCLE_BRANCH}" > /dev/null 2>&1
|
||||
# prevent token leak ^^^^^^^^^^^^^^
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "hub push to \"${UPD_BOT_LOGIN}\" failed"
|
||||
echo "hub push failed"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue