@@ -3,10 +3,10 @@ name: Auto Pull Request By Release
33on :
44 repository_dispatch :
55 types : [ webhook ]
6-
6+
77env :
88 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9-
9+
1010jobs :
1111 run :
1212 runs-on : ubuntu-latest
@@ -48,25 +48,25 @@ jobs:
4848 version=`curl https://api.github.com/repos/tencentcloudstack/terraform-provider-tencentcloud/releases/latest --header 'Accept: application/vnd.github+json' --header 'Authorization: Bearer ${{secrets.GITHUB_TOKEN}}' | jq .name | tr -d '"' | tr -d 'v'`
4949 echo "version=$version" >> "$GITHUB_OUTPUT"
5050
51- git clone https://SevenEarth :${{secrets.GITHUB_TOKEN}}@github.com: tencentcloudstack/pulumi-tencentcloud.git
51+ git clone https://hellertang :${{secrets.GITHUB_TOKEN}}@github.com/ tencentcloudstack/pulumi-tencentcloud.git
5252 cd pulumi-tencentcloud
53- git config --global user.email "391613297@qq .com"
54- git config --global user.name "SevenEarth "
55- git checkout -b "feat/sync_provider_ ${version}"
56-
57- cd provider && go mod tidy && cd -
53+ git config --global user.email "hellertang@github .com"
54+ git config --global user.name "hellertang "
55+ git checkout -b "feat/sync_provider_v ${version}"
56+
57+ cd provider && go get -v github.com/tencentcloudstack/terraform-provider-tencentcloud@v${version} && go mod tidy && cd -
5858 make tfgen
5959 make provider
6060 make build_sdks
6161 cd sdk && go mod tidy && cd -
6262
6363 git add .
6464 git commit -sm "sync provider"
65- git push origin feat/sync_provider_ ${version}
66-
65+ git push origin feat/sync_provider_v ${version}
66+
6767 - name : create pull request
6868 run : |
6969 cd pulumi-tencentcloud
70- gh pr create -B main -H feat/sync_provider_ ${{ steps.generate-code.outputs.version }} --title "sync terraform provider" --body "sync terraform provider version to ${{ steps.update-code.outputs.version }}"
70+ gh pr create -B main -H feat/sync_provider_v ${{ steps.generate-code.outputs.version }} --title "sync terraform provider v${{ steps.generate-code.outputs.version }} " --body "sync terraform provider version to v ${{ steps.update-code.outputs.version }}"
7171 env :
7272 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments