ci: update mirror action

This commit is contained in:
xrkffgg 2021-02-02 09:33:59 +08:00 committed by GitHub
parent 0b202064f7
commit ca05d15bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,16 +15,9 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'ant-design/ant-design'
steps:
- if: github.event_name == 'push'
- uses: wearerequired/git-mirror-action@v1
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}
with:
source-repo: 'git@github.com:ant-design/ant-design.git'
destination-repo: 'git@gitee.com:ant-design/ant-design.git'
- if: github.event_name == 'create' && github.event.ref_type == 'tag'
- uses: wearerequired/git-mirror-action@v1
- name: mirror
if: github.event_name == 'push' || (github.event_name == 'create' && github.event.ref_type == 'tag')
uses: wearerequired/git-mirror-action@v1
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}
with: