Skip to content

Commit f6d59f8

Browse files
authored
Merge pull request #75 from terraform-docs/release/v1.0.0
chore: prepare release v1.0.0
2 parents 0d3da76 + d4b4a27 commit f6d59f8

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

.github/templates/README.tpl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ version 0.11+ and 0.12+ but may work for others.)
2121
| --- |
2222
{{- end }}
2323

24+
### Upgrade v0 to v1
25+
26+
Release v1 contains following breaking changes:
27+
28+
- default value of `output-file` has been changed to `README.md`
29+
- default value of `template` has been changed to
30+
31+
```text
32+
<!-- BEGIN_TF_DOCS -->
33+
{{"{{"}} .Content {{"}}"}}
34+
<!-- END_TF_DOCS -->
35+
```
36+
2437
## Usage
2538

2639
To use terraform-docs github action, configure a YAML workflow file, e.g.

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,22 @@ branch.
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
1212
version 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

1629
To use terraform-docs github action, configure a YAML workflow file, e.g.
@@ -29,7 +42,7 @@ jobs:
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

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ outputs:
8585

8686
runs:
8787
using: docker
88-
image: "docker://quay.io/terraform-docs/gh-actions:edge"
88+
image: "docker://quay.io/terraform-docs/gh-actions:1.0.0"
8989
env:
9090
INPUT_WORKING_DIR: ${{ inputs.working-dir }}
9191
INPUT_ATLANTIS_FILE: ${{ inputs.atlantis-file }}

0 commit comments

Comments
 (0)