diff --git a/.github/workflows/mirror_gitee.yml b/.github/workflows/mirror_gitee.yml new file mode 100644 index 000000000..bf72465bc --- /dev/null +++ b/.github/workflows/mirror_gitee.yml @@ -0,0 +1,19 @@ +name: Mirror to Gitee Repo + +on: [ push, delete, create ] + +# Ensures that only one mirror task will run at a time. +concurrency: + group: git-mirror + +jobs: + git-mirror: + if: github.repository_owner == 'deepmodeling' + runs-on: ubuntu-latest + steps: + - uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.SYNC_GITEE_PRIVATE_KEY }} + with: + source-repo: "https://github.com/deepmodeling/dmff.git" + destination-repo: "git@gitee.com:deepmodeling/dmff.git"