-
Notifications
You must be signed in to change notification settings - Fork 7
/
sync2gitee.yml
38 lines (34 loc) · 1.13 KB
/
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
31
32
33
34
35
36
37
38
name: sync2gitee
# version: 1.0.3
# 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-02-02 10:21:55
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: Get current repository name
id: info
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
script: |
return context.repo.repo;
- 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: '${{ steps.info.outputs.result }}'
account_type: user
force_update: true