fix(waf): [121922104] tencentcloud_waf_ip_access_control_v2
Fix the…
#2012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a sync code to tgit workflow | |
name: sync-code | |
on: | |
push: | |
branches: | |
- master | |
- 'coding-test/**' | |
- 'pipeline/**' | |
tags: v* | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: clone | |
run: | | |
if [ -d terraform-provider-tencentcloud ]; then | |
rm -rf terraform-provider-tencentcloud | |
fi | |
git clone https://github.com/tencentcloudstack/terraform-provider-tencentcloud.git | |
- name: sync | |
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 | |
git push -u tgit_origin -f --all | |
git push -u tgit_origin master:main | |
git push -u tgit_origin --tags |