@@ -16,34 +16,33 @@ jobs:
16
16
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git
17
17
git fetch --all
18
18
for branch in `git branch -a | grep remotes | grep -v HEAD`; do
19
- git branch --track ${branch##*/ } $branch
19
+ git branch --track ${branch#remotes/origin/} } $branch
20
20
done
21
21
env :
22
22
GITHUB_REPOSITORY : Tencent/CodeAnalysis
23
23
24
24
- name : Push to TGIT
25
25
run : |
26
26
remote_repo="https://${TGIT_USERNAME}:${TGIT_PASSWORD}@git.code.tencent.com/${TGIT_REPOSITORY}.git"
27
- git remote add tencent "${remote_repo}"
27
+ git remote add tgit "${remote_repo}"
28
28
git show-ref
29
29
git branch --verbose
30
- git push --all --force tencent
31
- git push --tags --force tencent
30
+ git push --all --force tgit
31
+ git push --tags --force tgit
32
32
env :
33
33
TGIT_REPOSITORY : Tencent_Open_Source/CodeAnalysis
34
34
TGIT_USERNAME : ${{ secrets.USERNAME }}
35
35
TGIT_PASSWORD : ${{ secrets.PASSWORD }}
36
+ continue-on-error : true
36
37
37
- - name : Push to Gitee
38
+ - name : Push to CNB
38
39
run : |
39
- remote_repo="https://${GITEE_USERNAME}:${GITEE_PASSWORD}@gitee.com/${GITEE_REPOSITORY}.git"
40
- git remote add gitee "${remote_repo}"
41
- git show-ref
42
- git branch --verbose
43
- git push --all --force gitee
44
- git push --tags --force gitee
40
+ remote_repo="https://${CNB_USERNAME}:${CNB_PASSWORD}@cnb.cool/${CNB_REPOSITORY}.git"
41
+ git remote add cnb "${remote_repo}"
42
+ git push --all --force cnb
43
+ git push --tags --force cnb
45
44
env :
46
- GITEE_REPOSITORY : zhang9w0v5/CodeAnalysis
47
- GITEE_USERNAME : ${{ secrets.GITEE_USERNAME }}
48
- GITEE_PASSWORD : ${{ secrets.GITEE_PASSWORD }}
45
+ CNB_REPOSITORY : tca/code-analysis
46
+ CNB_USERNAME : ${{ secrets.CNB_USERNAME }}
47
+ CNB_PASSWORD : ${{ secrets.CNB_PASSWORD }}
49
48
0 commit comments