Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/sync-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
run: |
cd terraform-provider-tencentcloud
git fetch --all
git branch -r --list "origin/coding-test/*" | grep -v HEAD | grep -v master | xargs -I {} git checkout -t {}
git branch -r --list "origin/pipeline/*" | grep -v HEAD | grep -v master | xargs -I {} git checkout -t {}
git remote add tgit_origin https://${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}@git.code.tencent.com/tencentcloudstack/terraform-provider-tencentcloud.git
for remote in `git branch -r | grep -v "\->" | grep -v "master"`; do git branch --track ${remote#origin/} $remote; done
git push -f --tags tgit_origin master:main
git push -f --all tgit_origin
git push -u tgit_origin --all
git push -u tgit_origin master:main
git push -u tgit_origin --tags