2021-02-22 20:05:55 +08:00
|
|
|
name: 🔀 Sync mirror to Gitee
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- gh-pages
|
|
|
|
- feature
|
|
|
|
- 2.x-stable
|
|
|
|
- 3.x-stable
|
2022-11-18 23:18:45 +08:00
|
|
|
- 4.x-stable
|
2021-02-22 20:05:55 +08:00
|
|
|
create:
|
2023-03-07 11:02:25 +08:00
|
|
|
workflow_dispatch:
|
2021-02-22 20:05:55 +08:00
|
|
|
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-02-22 20:05:55 +08:00
|
|
|
jobs:
|
|
|
|
mirror:
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2021-02-22 20:05:55 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'ant-design/ant-design'
|
|
|
|
steps:
|
|
|
|
- name: mirror
|
|
|
|
continue-on-error: true
|
2023-04-24 09:50:53 +08:00
|
|
|
if: github.event_name == 'push' || (github.event_name == 'create' && github.event.ref_type == 'tag') || github.event_name == 'workflow_dispatch'
|
2021-02-22 20:05:55 +08:00
|
|
|
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'
|