Skip to content

Commit 74bf9f6

Browse files
authored
[skip ci]feat(sync): add workflow to sync GitHub repository (#1060)
feat(sync): add workflow to sync GitHub repository to Gitee
1 parent d0c22a1 commit 74bf9f6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/sync_to_gitee.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Sync to Gitee
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
sync:
11+
runs-on: ubuntu-latest
12+
name: Sync GitHub to Gitee
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Mirror to Gitee
20+
uses: pixta-dev/repository-mirroring-action@v1
21+
with:
22+
target_repo_url: ${{ vars.GITEE_REPO_URL }}
23+
ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)