[ci] clean-up
This commit is contained in:
parent
db2e6d2be4
commit
63f5bc7bb9
|
@ -38,6 +38,8 @@ jobs:
|
|||
environment:
|
||||
- BASH_ENV: ".circleci/shared"
|
||||
- PUBLISH: "spacemacs_built_in"
|
||||
- UPD_BOT_LOGIN: "SpacemacsBot"
|
||||
- UPD_BOT_REPO: "spacemacs"
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
|
|
|
@ -51,14 +51,14 @@ 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 ^^^^^^^^^^^^^^
|
||||
hub push -f "${UPD_BOT_LOGIN}" "${PUBLISH}" > /dev/null 2>&1
|
||||
# prevent token leak ^^^^^^^^^^^^^^
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "hub push failed"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo_headline "Opening PR to Spacemacs repo"
|
||||
echo_headline "Opening PR to ${UPD_BOT_LOGIN}/${UPD_BOT_REPO} repo"
|
||||
echo "[bot] Built-in auto-update" > msg
|
||||
echo >> msg
|
||||
echo "Merge with care - I'm just a stupid bot. Beep boop." >> msg
|
||||
|
|
Loading…
Reference in New Issue