mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
23 lines
628 B
YAML
23 lines
628 B
YAML
name: 🔀 Sync mirror to Gitee
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- docs
|
|
create:
|
|
|
|
jobs:
|
|
mirror:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'TuSimple/naive-ui'
|
|
steps:
|
|
- name: mirror
|
|
continue-on-error: true
|
|
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:
|
|
source-repo: 'git@github.com:TuSimple/naive-ui.git'
|
|
destination-repo: 'git@gitee.com:naive-ui/naive-ui.git' |