Skip to content

Commit 8b6edcf

Browse files
authored
sync code2tgit
1 parent e3d80d3 commit 8b6edcf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This is a sync code to tgit workflow
2+
3+
name: SYNC_CODE
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: firstly
15+
run: |
16+
if [ -d terraform-provider-tencentcloud ]; then
17+
rm -rf terraform-provider-tencentcloud
18+
fi
19+
git clone https://github.com/tencentcloudstack/terraform-provider-tencentcloud.git
20+
- name: secondly
21+
run: |
22+
cd terraform-provider-tencentcloud
23+
git remote add tgit_origin https://${{ USERNAME }}:${{ PASSWORD }}@git.code.tencent.com/mikatong/terraform-provider-tencentcloud.git
24+
git fetch --all
25+
git push -u --tags tgit_origin master:main

0 commit comments

Comments
 (0)