Skip to content

Mirror the Github organization repos to Gitee #427

Mirror the Github organization repos to Gitee

Mirror the Github organization repos to Gitee #427

Workflow file for this run

name: Mirror the Github organization repos to Gitee
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '59 15 * * *'
jobs:
mirror_github:
name: Mirror the Github organization repos to Gitee
runs-on: ubuntu-latest
steps:
- name: Mirror the Github organization repos to Gitee
uses: guoxianzhe/hub-mirror-action@master
with:
src: github/AgoraIO-Extensions
dst: gitee/agoraio-community
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
account_type: org
cache_path: "./cache"
force_update: true
white_list: "Agora-Flutter-SDK,agora-rtc-react,Agora-Unreal-RTC-SDK,Electron-SDK,Agora-C_Sharp-SDK,Agora-Unity-Quickstart,RawDataPluginSample,react-native-image-tools,react-native-agora-rawdata"
- name: Mirror react-native-agora to Gitee
uses: guoxianzhe/hub-mirror-action@master
with:
src: github/AgoraIO-Extensions
dst: gitee/agoraio-community
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
account_type: org
cache_path: "./cache"
force_update: true
shell_command: |
git config --global user.email "[email protected]"
git config --global user.name "sync2gitee"
chmod +x ./scripts/mirror.sh && ./scripts/mirror.sh
git add .yarnrc.yml
git add example/package.json
git commit -m 'gitee sync >> use china repos.'
git branch
git status
git push gitee
static_list: "react-native-agora"
white_list: "react-native-agora"