Skip to content

Commit dd06bc1

Browse files
authored
chore(scripts): use ssh private key for git sync (#7224)
1 parent 0b09869 commit dd06bc1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/git-sync.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ jobs:
1212
steps:
1313
- name: git-sync
1414
env:
15-
git_sync_source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
1615
git_sync_destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
17-
if: env.git_sync_source_repo && env.git_sync_destination_repo
16+
git_sync_ssh_private_key: ${{ secrets.GIT_SYNC_SSH_PRIVATE_KEY }}
17+
if: env.git_sync_destination_repo && env.git_sync_ssh_private_key
1818
uses: wei/git-sync@v3
1919
with:
20-
source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
20+
source_repo: "[email protected]:aws/aws-sdk-js-v3.git"
2121
source_branch: "main"
2222
destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
2323
destination_branch: "main"
24-
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
25-
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}
24+
ssh_private_key: ${{ secrets.GIT_SYNC_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)