mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 06:56:36 +08:00
仓库同步(初步)
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
name: Synch Gitee To Github
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
|
||||
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:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUBUSER: ${{ secrets.GITHUBUSER }}
|
||||
run: |
|
||||
cd sync-gitee-to-github
|
||||
python3 sync.py $GITHUBUSER $TOKEN
|
||||
|
||||
Reference in New Issue
Block a user