[ci] add init script for bot

This commit is contained in:
JAremko 2021-07-01 16:49:25 +03:00 committed by Eugene Yaremenko
parent 2189689eae
commit b642059a9b
2 changed files with 30 additions and 1 deletions

29
.circleci/bot_init Executable file
View File

@ -0,0 +1,29 @@
#!/usr/bin/env bash
## Bot_init initialization script for bot account CircleCI
##
## Copyright (c) 2012-2014 Sylvain Benner
## Copyright (c) 2014-2021 Sylvain Benner & Contributors
##
## Author: Eugene Yaremenko
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
skip_when_non_official_repo
echo_headline "Setting up bot account"
mkdir -p ~/.ssh
printf "Host github.com\n" > ~/.ssh/config
printf " StrictHostKeyChecking no\n" >> ~/.ssh/config
printf " UserKnownHostsFile=/dev/null\n" >> ~/.ssh/config
git config --global user.name $UPD_BOT_LONIG
git config --global user.email "not@an.actual.email.beep.boop"
git config --global push.default simple
git config --global hub.protocol https
export GITHUB_TOKEN=$UPD_BOT_GIT_TK

View File

@ -41,7 +41,7 @@ jobs:
steps:
- run:
name: Initialize bot account
command: .circleci/update/bot_init
command: .circleci/bot_init
- checkout
- run:
name: Make patch file