Skip to content

Commit 273e104

Browse files
tongyimingmikatong
andauthored
fix sync code (#2474)
Co-authored-by: mikatong <mikatong@tencent.com>
1 parent 84e8ad7 commit 273e104

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sync-code.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
run: |
2626
cd terraform-provider-tencentcloud
2727
git fetch --all
28+
git branch -r --list "origin/coding-test/*" | grep -v HEAD | grep -v master | xargs -I {} git checkout -t {}
29+
git branch -r --list "origin/pipeline/*" | grep -v HEAD | grep -v master | xargs -I {} git checkout -t {}
2830
git remote add tgit_origin https://${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}@git.code.tencent.com/tencentcloudstack/terraform-provider-tencentcloud.git
29-
for remote in `git branch -r | grep -v "\->" | grep -v "master"`; do git branch --track ${remote#origin/} $remote; done
30-
git push -f --tags tgit_origin master:main
31-
git push -f --all tgit_origin
31+
git push -u tgit_origin --all
32+
git push -u tgit_origin master:main
33+
git push -u tgit_origin --tags

0 commit comments

Comments
 (0)