From 52e84f92e084e2246f2f26224c5c01d6d193fb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Mon, 25 Jan 2021 11:50:30 +0800 Subject: [PATCH] =?UTF-8?q?test(=F0=9F=94=80):=20use=20wearerequired/git-m?= =?UTF-8?q?irror-action=20(#29012)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 85f0edd396..bae0232349 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,14 +1,15 @@ -name: Mirror +name: 🔀 Mirror to Gitee -on: [push, delete] +on: [ push, delete, create ] jobs: - to_gitee: + git-mirror: runs-on: ubuntu-latest if: github.repository == 'ant-design/ant-design' steps: - - uses: actions/checkout@v1 - - uses: pixta-dev/repository-mirroring-action@v1 + - uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }} with: - target_repo_url: git@gitee.com:ant-design/ant-design.git - ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }} + source-repo: 'git@github.com:ant-design/ant-design.git' + destination-repo: 'git@gitee.com:ant-design/ant-design.git'