Skip to content

Commit 114b3be

Browse files
committed
fix: disable persist-credentials and use mirror remote
1 parent 0707ac1 commit 114b3be

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sync-to-mirror-repo.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
repository: aws/aws-sam-cli
2020
ref: develop
2121
fetch-depth: 0
22+
persist-credentials: false
2223

2324
- name: Push to mirror repo
2425
run: |
25-
git remote set-url origin https://x-access-token:${{ secrets.SYNC_TOKEN }}@github.com/${{ github.repository }}.git
26-
git push origin develop:develop --force
26+
git remote add mirror https://x-access-token:${{ secrets.SYNC_TOKEN }}@github.com/${{ github.repository }}.git
27+
git push mirror develop:develop --force

0 commit comments

Comments
 (0)