From 74bf9f6467026bc4e0c31289c697a576e0255499 Mon Sep 17 00:00:00 2001 From: Suyunjing Date: Fri, 15 Aug 2025 18:12:29 +0800 Subject: [PATCH] [skip ci]feat(sync): add workflow to sync GitHub repository (#1060) feat(sync): add workflow to sync GitHub repository to Gitee --- .github/workflows/sync_to_gitee.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/sync_to_gitee.yml diff --git a/.github/workflows/sync_to_gitee.yml b/.github/workflows/sync_to_gitee.yml new file mode 100644 index 00000000..3218e6a5 --- /dev/null +++ b/.github/workflows/sync_to_gitee.yml @@ -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 }}