Skip to content

Commit eda0744

Browse files
authored
Update sync.yml
1 parent 7fc5406 commit eda0744

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/sync.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,17 @@ jobs:
3333
TGIT_REPOSITORY: Tencent_Open_Source/CodeAnalysis
3434
TGIT_USERNAME: ${{ secrets.USERNAME }}
3535
TGIT_PASSWORD: ${{ secrets.PASSWORD }}
36+
37+
- name: Push to Gitee
38+
run: |
39+
remote_repo="https://${GITEE_USERNAME}:${GITEE_PASSWORD}@gitee.com/${TGIT_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
45+
env:
46+
GITEE_REPOSITORY: zhang9w0v5/CodeAnalysis
47+
GITEE_USERNAME: ${{ secrets.GITEE_USERNAME }}
48+
GITEE_PASSWORD: ${{ secrets.GITEE_PASSWORD }}
49+

0 commit comments

Comments
 (0)