Skip to content

Commit

Permalink
增加同步地址
Browse files Browse the repository at this point in the history
  • Loading branch information
gfdgd-xi committed Sep 17, 2024
1 parent c299b58 commit 112a66a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
- name: Push
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUBTOKEN: ${{ secrets.GITHUBTOKEN }}
GITHUBUSER: ${{ secrets.GITHUBUSER }}
GITCODETOKEN: ${{ secrets.GITCODETOKEN }}
GITCODEUSER: ${{ secrets.GITCODEUSER }}
run: |
cd sync-gitee-to-github
python3 sync.py $GITHUBUSER $TOKEN
python3 sync.py $GITHUBUSER $GITHUBTOKEN $GITCODEUSER $GITCODETOKEN
3 changes: 2 additions & 1 deletion sync-gitee-to-github/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
}
pullUrl = "https://gitee.com/GXDE-OS/"
pushUrl = [
"https://@USER@:@PASS@@github.com/GXDE-OS/"
"https://@USER@:@PASS@@github.com/GXDE-OS/",
"https://@USER@:@PASS@@gitcode.com/GXDE-OS/"
]

if (len(sys.argv) < 1 + len(pushUrl) * 2):
Expand Down

0 comments on commit 112a66a

Please sign in to comment.