Skip to content

Commit 960248b

Browse files
committed
fix: get rid of secrets
1 parent f18379a commit 960248b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/sync-mirror.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ on:
77

88
jobs:
99
git-sync:
10+
# Only sync when pushing to source repo
1011
if: github.repository == 'awslabs/aws-sdk-kotlin'
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: git-sync
1415
uses: wei/git-sync@v3
1516
with:
16-
source_repo: "https://${{ secrets.CI_USER }}:${{ secrets.CI_USER_PAT }}@github.com/awslabs/aws-sdk-kotlin.git"
17+
source_repo: "https://aws-sdk-kotlin-ci:${{ secrets.CI_USER_PAT }}@github.com/awslabs/aws-sdk-kotlin.git"
1718
source_branch: "main"
18-
destination_repo: "https://${{ secrets.CI_USER }}:${{ secrets.CI_USER_PAT }}@github.com/${{ secrets.GIT_SYNC_DESTINATION_REPO }}.git"
19+
destination_repo: "https://aws-sdk-kotlin-ci:${{ secrets.CI_USER_PAT }}@github.com/awslabs/private-aws-sdk-kotlin-staging.git"
1920
destination_branch: "main"

0 commit comments

Comments
 (0)