[skip ci]feat(sync): add workflow to sync GitHub repository (#1060)

feat(sync): add workflow to sync GitHub repository to Gitee
This commit is contained in:
Suyunjing
2025-08-15 18:12:29 +08:00
committed by GitHub
parent d0c22a1ecb
commit 74bf9f6467

23
.github/workflows/sync_to_gitee.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Sync to Gitee
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
name: Sync GitHub to Gitee
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to Gitee
uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: ${{ vars.GITEE_REPO_URL }}
ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}