-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (27 loc) · 895 Bytes
/
sync2gitee.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: sync2gitee
# version: 1.0.2
# author: [yiXu](https://github.com/yi-Xu-0100)
# guide: [yi-Xu-0100/hub-mirror](https://github.com/yi-Xu-0100/hub-mirror)
# template: [sync2gitee.yml](https://github.com/yi-Xu-0100/hub-mirror/blob/main/template/sync2gitee.yml)
# lastmod: 2021-01-29 23:05:54
on:
push:
schedule:
# UTC 17:00 -> CST (China) 1:00 see https://datetime360.com/cn/utc-cst-china-time/
- cron: '1 17 * * *'
jobs:
run:
name: Sync GitHub to Gitee
runs-on: ubuntu-latest
steps:
- name: Mirror the GitHub repos to Gitee
uses: Yikun/[email protected]
with:
src: github/yi-Xu-0100
dst: gitee/yiXu0100
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: 'MY_REPO'
account_type: user
force_update: true
timeout: 300