Skip to content

Commit

Permalink
feat: workflow pre release support scan marked API comment file (#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
houpeng80 authored Dec 15, 2023
1 parent 6361a80 commit e7aa06d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ jobs:
go run main.go -inputDir=../../terraform-provider-generator/src/main/resources -outputDir=../../terraform-provider-huaweicloud/docs/api -providerSchemaPath=../schema.json
cd ../../
- name: parse APIs that marked with comments
run: |
cp terraform-api-scan/scan-marked-comment-file/*.go terraform-provider-huaweicloud/
cd terraform-provider-huaweicloud
go run main.go -basePath=../../terraform-provider-huaweicloud/ -outputDir=../../terraform-provider-huaweicloud/docs/api -providerSchemaPath=../schema.json
cd ..
- name: commit APIs that resources depend-on
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit e7aa06d

Please sign in to comment.