8
8
9
9
## Version
10
10
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
12
12
version 0.11+ and 0.12+ but may work for others.)
13
13
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
+
14
27
## Usage
15
28
16
29
To use terraform-docs github action, configure a YAML workflow file, e.g.
29
42
ref : ${{ github.event.pull_request.head.ref }}
30
43
31
44
- 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
33
46
with :
34
47
working-dir : .
35
48
output-file : README.md
@@ -134,7 +147,7 @@ To enable you need to ensure a few things first:
134
147
135
148
` ` ` yaml
136
149
- name: Generate TF Docs
137
- uses: terraform-docs/gh-actions@v0.11 .0
150
+ uses: terraform-docs/gh-actions@v1.0 .0
138
151
with:
139
152
working-dir: .
140
153
` ` `
@@ -143,7 +156,7 @@ To enable you need to ensure a few things first:
143
156
144
157
` ` ` yaml
145
158
- name: Generate TF Docs
146
- uses: terraform-docs/gh-actions@v0.11 .0
159
+ uses: terraform-docs/gh-actions@v1.0 .0
147
160
with:
148
161
working-dir: .,example1,example3/modules/test
149
162
` ` `
@@ -152,7 +165,7 @@ To enable you need to ensure a few things first:
152
165
153
166
` ` ` yaml
154
167
- name: Generate TF docs
155
- uses: terraform-docs/gh-actions@v0.11 .0
168
+ uses: terraform-docs/gh-actions@v1.0 .0
156
169
with:
157
170
atlantis-file: atlantis.yaml
158
171
` ` `
@@ -161,7 +174,7 @@ To enable you need to ensure a few things first:
161
174
162
175
` ` ` yaml
163
176
- name: Generate TF docs
164
- uses: terraform-docs/gh-actions@v0.11 .0
177
+ uses: terraform-docs/gh-actions@v1.0 .0
165
178
with:
166
179
find-dir: examples/
167
180
` ` `
@@ -170,13 +183,13 @@ To enable you need to ensure a few things first:
170
183
171
184
` ` ` yaml
172
185
- name: Generate TF docs
173
- uses: terraform-docs/gh-actions@v0.11 .0
186
+ uses: terraform-docs/gh-actions@v1.0 .0
174
187
with:
175
188
working-dir: examples/
176
189
recursive: true
177
190
recursive-path: modules
178
191
` ` `
179
192
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).
181
194
182
195
[terraform-docs] : https://github.com/terraform-docs/terraform-docs
0 commit comments