Synch Gitee To Github #187
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
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 python3-requests -y | |
- name: Push | |
env: | |
GITHUBTOKEN: ${{ secrets.GITHUBTOKEN }} | |
GITHUBUSER: ${{ secrets.GITHUBUSER }} | |
GITCODETOKEN: ${{ secrets.GITCODETOKEN }} | |
GITCODEUSER: ${{ secrets.GITCODEUSER }} | |
run: | | |
cd sync-gitee-to-github | |
python3 sync.py $GITHUBUSER $GITHUBTOKEN $GITCODEUSER $GITCODETOKEN | |