88
99## Version
1010
11- ` v0.11 .0` (uses [ terraform-docs] v0.16.0, which is supported and tested on Terraform
11+ ` v1.0 .0` (uses [ terraform-docs] v0.16.0, which is supported and tested on Terraform
1212version 0.11+ and 0.12+ but may work for others.)
1313
14+ ### Upgrade v0 to v1
15+
16+ Release v1 contains following breaking changes:
17+
18+ - default value of ` output-file ` has been changed to ` README.md `
19+ - default value of ` template ` has been changed to
20+
21+ ``` text
22+ <!-- BEGIN_TF_DOCS -->
23+ {{ .Content }}
24+ <!-- END_TF_DOCS -->
25+ ```
26+
1427## Usage
1528
1629To use terraform-docs github action, configure a YAML workflow file, e.g.
2942 ref : ${{ github.event.pull_request.head.ref }}
3043
3144 - name : Render terraform docs inside the README.md and push changes back to PR branch
32- uses : terraform-docs/gh-actions@v0.11 .0
45+ uses : terraform-docs/gh-actions@v1.0 .0
3346 with :
3447 working-dir : .
3548 output-file : README.md
@@ -134,7 +147,7 @@ To enable you need to ensure a few things first:
134147
135148` ` ` yaml
136149- name: Generate TF Docs
137- uses: terraform-docs/gh-actions@v0.11 .0
150+ uses: terraform-docs/gh-actions@v1.0 .0
138151 with:
139152 working-dir: .
140153` ` `
@@ -143,7 +156,7 @@ To enable you need to ensure a few things first:
143156
144157` ` ` yaml
145158- name: Generate TF Docs
146- uses: terraform-docs/gh-actions@v0.11 .0
159+ uses: terraform-docs/gh-actions@v1.0 .0
147160 with:
148161 working-dir: .,example1,example3/modules/test
149162` ` `
@@ -152,7 +165,7 @@ To enable you need to ensure a few things first:
152165
153166` ` ` yaml
154167- name: Generate TF docs
155- uses: terraform-docs/gh-actions@v0.11 .0
168+ uses: terraform-docs/gh-actions@v1.0 .0
156169 with:
157170 atlantis-file: atlantis.yaml
158171` ` `
@@ -161,7 +174,7 @@ To enable you need to ensure a few things first:
161174
162175` ` ` yaml
163176- name: Generate TF docs
164- uses: terraform-docs/gh-actions@v0.11 .0
177+ uses: terraform-docs/gh-actions@v1.0 .0
165178 with:
166179 find-dir: examples/
167180` ` `
@@ -170,13 +183,13 @@ To enable you need to ensure a few things first:
170183
171184` ` ` yaml
172185- name: Generate TF docs
173- uses: terraform-docs/gh-actions@v0.11 .0
186+ uses: terraform-docs/gh-actions@v1.0 .0
174187 with:
175188 working-dir: examples/
176189 recursive: true
177190 recursive-path: modules
178191` ` `
179192
180- Complete examples can be found [here](https://github.com/terraform-docs/gh-actions/tree/v0.11 .0/examples).
193+ Complete examples can be found [here](https://github.com/terraform-docs/gh-actions/tree/v1.0 .0/examples).
181194
182195[terraform-docs] : https://github.com/terraform-docs/terraform-docs
0 commit comments