Skip to content

Commit f46fc03

Browse files
authored
Fix gitee sync script problems. (#362)
1 parent 44e6c89 commit f46fc03

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/gitee-sync.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1+
name: gitee-sync
12
on:
2-
push:
3-
# delete this item if you don't want to trigger this workflow when modify this repo
4-
branches: master
5-
schedule:
6-
# * is a special character in YAML so you have to quote this string
7-
# UTC 17:00 -> CST (China) 1:00, see https://datetime360.com/cn/utc-cst-china-time/
8-
- cron: '0 17 * * *'
9-
name: Mirror GitHub Auto Queried Repos to Gitee
3+
pull_request:
4+
workflow_dispatch:
5+
106
jobs:
11-
run:
12-
name: Sync-GitHub-to-Gitee
7+
build:
8+
name: gitee-sync
139
runs-on: ubuntu-latest
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
if: github.actor != 'dependabot[bot]'
1415
steps:
15-
- name: Mirror the Github repos to Gitee.
16-
uses: Yikun/hub-mirror-action@master
17-
with:
18-
src: github/AgoraIO
19-
dst: gitee/agoraio-community
20-
white_list: "API-Examples"
21-
static_list: "API-Examples"
22-
dst_key: ${{ secrets.GITEE_PI_SSH }}
23-
dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }}
24-
mappings: ".github=>github"
25-
cache_path: "./cache"
26-
force_update: true
27-
account_type: org
16+
- name: Gitee sync repo
17+
uses: Yikun/[email protected]
18+
with:
19+
src: github/AgoraIO
20+
dst: gitee/agoraio-community
21+
white_list: "API-Examples"
22+
static_list: "API-Examples"
23+
cache_path: "./cache"
24+
dst_key: ${{ secrets.GITEE_PI_SSH }}
25+
dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }}
26+
force_update: true
27+
account_type: org

0 commit comments

Comments
 (0)