Files
GXDE/.github/workflows/sync.yml
T
shenmo7192 a6f6c26fb9 ci(github workflow): simplify sync workflow and rewrite sync script
1. 移除多余的第三方同步目标和依赖包
2. 将原bash脚本重写为python脚本,新增多线程同步、失败重试和同步报告
3. 精简工作流的环境变量和执行参数
2026-08-03 19:16:34 +08:00

31 lines
695 B
YAML
Executable File

name: Synch Gitee To Github
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
- cron: "0 10 * * *"
- cron: "0 20 * * *"
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Config
run: |
sudo apt update
sudo apt install git -y
- name: Push
env:
GITHUBTOKEN: ${{ secrets.GITHUBTOKEN }}
GITHUBUSER: ${{ secrets.GITHUBUSER }}
GITEEUSER: ${{ secrets.GITEEUSER }}
GITEETOCKEN: ${{ secrets.GITEETOCKEN }}
run: |
cd sync-gitee-to-github
python3 sync.py $GITEEUSER $GITEETOCKEN $GITHUBUSER $GITHUBTOKEN