From e761538e26f952928e6fb6020b6730d83ceb807c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=97=E4=BD=A0=E6=98=AF=E5=B0=8F=E7=8C=AB=E5=92=AA?= Date: Thu, 28 May 2020 22:03:29 +0800 Subject: [PATCH] chore: improve github aciton mirror conditional (#24545) --- .github/workflows/mirror.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 2e045684d0..4bc8b79bb4 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -5,11 +5,10 @@ on: [push] jobs: to_gitee: runs-on: ubuntu-latest + if: github.repository == 'ant-design/ant-design' steps: - - uses: actions/checkout@v1 - - uses: pixta-dev/repository-mirroring-action@v1 - with: - target_repo_url: - git@gitee.com:ant-design/ant-design.git - ssh_private_key: - ${{ secrets.GITEE_SSH_PRIVATE_KEY }} + - uses: actions/checkout@v1 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: git@gitee.com:ant-design/ant-design.git + ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}