Skip to content

Commit 72d6f39

Browse files
author
huangshuwei
committed
add sync-gitee action
1 parent 803cc5f commit 72d6f39

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/sync-gitee.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 🔀 Sync mirror to Gitee
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
- 1.x
9+
- 2.x
10+
create:
11+
12+
jobs:
13+
mirror:
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'Happy-Coding-Clans/vue-easytable'
16+
steps:
17+
- name: mirror
18+
continue-on-error: true
19+
if: github.event_name == 'push' || (github.event_name == 'create' && github.event.ref_type == 'tag')
20+
uses: wearerequired/git-mirror-action@v1
21+
env:
22+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}
23+
with:
24+
source-repo: '[email protected]:Happy-Coding-Clans/vue-easytable.git'
25+
destination-repo: '[email protected]:huangshuwei/vue-easytable.git'

0 commit comments

Comments
 (0)