File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v2
22+ - uses : webfactory/ssh-agent@v0.4.1
23+ with :
24+ ssh-private-key : ${{ secrets.ORY_BOT_SSH_KEY }}
2225 - run : |
2326 source ./scripts/sync.sh
2427 install_dependencies_on_ci
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ function clone {
195195 header " CLONING"
196196 local -r repo_id=$1
197197 local -r repo_path=$2
198- git clone --depth 1 " https:// github.com/ $repo_id .git" " $repo_path "
198+ git clone --depth 1 " git@ github.com: $repo_id .git" " $repo_path "
199199}
200200
201201# commits the changes in the current directory to the local Git client
@@ -215,8 +215,7 @@ function configure_git_on_ci {
215215 header " CONFIGURING GIT"
216216 # set git email & username
217217 bash <( curl -s https://raw.githubusercontent.com/ory/ci/master/src/scripts/install/git.sh)
218- # change global url from https://github.com/ to git@github.com:
219- # git config --global url."git@github.com:".insteadOf https://github.com/
218+ git config --global url." git@github.com:" .insteadOf https://github.com/
220219 git config --global user.email " 60093411+ory-bot@users.noreply.github.com"
221220 git config --global user.name " ory-bot"
222221}
You can’t perform that action at this time.
0 commit comments