Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gitee sync script problems. #362

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions .github/workflows/gitee-sync.yml
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/hub-mirror-action@v1.3
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
Loading