-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gitee sync script problems. (#362)
- Loading branch information
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: gitee-sync | ||
on: | ||
push: | ||
# delete this item if you don't want to trigger this workflow when modify this repo | ||
branches: master | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# UTC 17:00 -> CST (China) 1:00, see https://datetime360.com/cn/utc-cst-china-time/ | ||
- cron: '0 17 * * *' | ||
name: Mirror GitHub Auto Queried Repos to Gitee | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
name: Sync-GitHub-to-Gitee | ||
build: | ||
name: gitee-sync | ||
runs-on: ubuntu-latest | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
if: github.actor != 'dependabot[bot]' | ||
steps: | ||
- name: Mirror the Github repos to Gitee. | ||
uses: Yikun/hub-mirror-action@master | ||
with: | ||
src: github/AgoraIO | ||
dst: gitee/agoraio-community | ||
white_list: "API-Examples" | ||
static_list: "API-Examples" | ||
dst_key: ${{ secrets.GITEE_PI_SSH }} | ||
dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }} | ||
mappings: ".github=>github" | ||
cache_path: "./cache" | ||
force_update: true | ||
account_type: org | ||
- name: Gitee sync repo | ||
uses: Yikun/[email protected] | ||
with: | ||
src: github/AgoraIO | ||
dst: gitee/agoraio-community | ||
white_list: "API-Examples" | ||
static_list: "API-Examples" | ||
cache_path: "./cache" | ||
dst_key: ${{ secrets.GITEE_PI_SSH }} | ||
dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }} | ||
force_update: true | ||
account_type: org |