1 parent a5caad9 commit d269c61Copy full SHA for d269c61
1 file changed
.github/workflows/sync-repos.yml
@@ -16,6 +16,12 @@ jobs:
16
sync:
17
runs-on: ubuntu-latest
18
steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+ persist-credentials: false
24
+
25
- name: Resolve mirror repository
26
id: mirror
27
run: |
@@ -60,7 +66,7 @@ jobs:
60
66
GH_TOKEN: ${{ secrets.REPO_SYNC_TOKEN }}
61
67
MIRROR_REPO: ${{ steps.mirror.outputs.repo }}
62
68
63
- gh repo sync "${MIRROR_REPO}" \
64
- --source "${{ github.repository }}" \
65
- --branch main \
- --force
69
+ git config user.name "github-actions[bot]"
70
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
71
+ git remote add mirror "https://x-access-token:${GH_TOKEN}@github.com/${MIRROR_REPO}.git"
72
+ git push mirror "HEAD:main" --force
0 commit comments