Skip to content

Commit

Permalink
fix: use ssh key again
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 30, 2024
1 parent 1ac3e5f commit b1eed88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.ORY_BOT_SSH_KEY }}
- run: |
source ./scripts/sync.sh
install_dependencies_on_ci
Expand Down
5 changes: 2 additions & 3 deletions scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function clone {
header "CLONING"
local -r repo_id=$1
local -r repo_path=$2
git clone --depth 1 "https://github.com/$repo_id.git" "$repo_path"
git clone --depth 1 "git@github.com:$repo_id.git" "$repo_path"
}

# commits the changes in the current directory to the local Git client
Expand All @@ -215,8 +215,7 @@ function configure_git_on_ci {
header "CONFIGURING GIT"
# set git email & username
bash <(curl -s https://raw.githubusercontent.com/ory/ci/master/src/scripts/install/git.sh)
# change global url from https://github.com/ to [email protected]:
# git config --global url."[email protected]:".insteadOf https://github.com/
git config --global url."[email protected]:".insteadOf https://github.com/
git config --global user.email "[email protected]"
git config --global user.name "ory-bot"
}
Expand Down

0 comments on commit b1eed88

Please sign in to comment.