Skip to content

Commit b1eed88

Browse files
committed
fix: use ssh key again
1 parent 1ac3e5f commit b1eed88

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
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

scripts/sync.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)