mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-08-10 06:14:15 +08:00
@@ -26,7 +26,9 @@ jobs:
|
|||||||
GITCODEUSER: ${{ secrets.GITCODEUSER }}
|
GITCODEUSER: ${{ secrets.GITCODEUSER }}
|
||||||
ATOMGITTOKEN: ${{ secrets.ATOMGITTOKEN }}
|
ATOMGITTOKEN: ${{ secrets.ATOMGITTOKEN }}
|
||||||
ATOMGITUSER: ${{ secrets.ATOMGITUSER }}
|
ATOMGITUSER: ${{ secrets.ATOMGITUSER }}
|
||||||
|
ATOMGITEEUSER: ${{ secrets.GITEEUSER }}
|
||||||
|
ATOMGITEETOCKEN: ${{ secrets.GITEETOCKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd sync-gitee-to-github
|
cd sync-gitee-to-github
|
||||||
python3 sync.py $GITHUBUSER $GITHUBTOKEN $GITCODEUSER $GITCODETOKEN $ATOMGITUSER $ATOMGITTOKEN
|
python3 sync.py $ATOMGITEEUSER $ATOMGITEETOCKEN $GITHUBUSER $GITHUBTOKEN $GITCODEUSER $GITCODETOKEN $ATOMGITUSER $ATOMGITTOKEN
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,12 @@ programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
|||||||
dataHeaders = {
|
dataHeaders = {
|
||||||
"accept": "application/json"
|
"accept": "application/json"
|
||||||
}
|
}
|
||||||
pullUrl = "https://gitee.com/GXDE-OS/"
|
giteeUser = ""
|
||||||
|
giteePassword = ""
|
||||||
|
if len(sys.argv) > 3:
|
||||||
|
giteeUser = sys.argv[1]
|
||||||
|
giteePassword = sys.argv[2]
|
||||||
|
pullUrl = f"https://{giteeUser}:{giteePassword}@gitee.com/GXDE-OS/"
|
||||||
pushUrl = [
|
pushUrl = [
|
||||||
"https://@USER@:@PASS@@github.com/GXDE-OS/",
|
"https://@USER@:@PASS@@github.com/GXDE-OS/",
|
||||||
"https://@USER@:@PASS@@gitcode.com/GXDE-OS/",
|
"https://@USER@:@PASS@@gitcode.com/GXDE-OS/",
|
||||||
@@ -25,7 +30,8 @@ if (len(sys.argv) < 1 + len(pushUrl) * 2):
|
|||||||
# 读取参数
|
# 读取参数
|
||||||
userName = []
|
userName = []
|
||||||
password = []
|
password = []
|
||||||
for i in range(1, len(sys.argv)):
|
|
||||||
|
for i in range(1 + 2, len(sys.argv)):
|
||||||
# 输入账户
|
# 输入账户
|
||||||
if (i % 2 == 1):
|
if (i % 2 == 1):
|
||||||
userName.append(sys.argv[i])
|
userName.append(sys.argv[i])
|
||||||
|
|||||||
Reference in New Issue
Block a user