Skip to content

Commit

Permalink
Merge pull request #75 from terraform-docs/release/v1.0.0
Browse files Browse the repository at this point in the history
chore: prepare release v1.0.0
  • Loading branch information
khos2ow committed Mar 30, 2022
2 parents 0d3da76 + d4b4a27 commit f6d59f8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/templates/README.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ version 0.11+ and 0.12+ but may work for others.)
| --- |
{{- end }}

### Upgrade v0 to v1

Release v1 contains following breaking changes:

- default value of `output-file` has been changed to `README.md`
- default value of `template` has been changed to

```text
<!-- BEGIN_TF_DOCS -->
{{"{{"}} .Content {{"}}"}}
<!-- END_TF_DOCS -->
```

## Usage

To use terraform-docs github action, configure a YAML workflow file, e.g.
Expand Down
29 changes: 21 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,22 @@ branch.

## Version

`v0.11.0` (uses [terraform-docs] v0.16.0, which is supported and tested on Terraform
`v1.0.0` (uses [terraform-docs] v0.16.0, which is supported and tested on Terraform
version 0.11+ and 0.12+ but may work for others.)

### Upgrade v0 to v1

Release v1 contains following breaking changes:

- default value of `output-file` has been changed to `README.md`
- default value of `template` has been changed to

```text
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
```

## Usage

To use terraform-docs github action, configure a YAML workflow file, e.g.
Expand All @@ -29,7 +42,7 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}

- name: Render terraform docs inside the README.md and push changes back to PR branch
uses: terraform-docs/gh-actions@v0.11.0
uses: terraform-docs/gh-actions@v1.0.0
with:
working-dir: .
output-file: README.md
Expand Down Expand Up @@ -134,7 +147,7 @@ To enable you need to ensure a few things first:

```yaml
- name: Generate TF Docs
uses: terraform-docs/gh-actions@v0.11.0
uses: terraform-docs/gh-actions@v1.0.0
with:
working-dir: .
```
Expand All @@ -143,7 +156,7 @@ To enable you need to ensure a few things first:

```yaml
- name: Generate TF Docs
uses: terraform-docs/gh-actions@v0.11.0
uses: terraform-docs/gh-actions@v1.0.0
with:
working-dir: .,example1,example3/modules/test
```
Expand All @@ -152,7 +165,7 @@ To enable you need to ensure a few things first:

```yaml
- name: Generate TF docs
uses: terraform-docs/gh-actions@v0.11.0
uses: terraform-docs/gh-actions@v1.0.0
with:
atlantis-file: atlantis.yaml
```
Expand All @@ -161,7 +174,7 @@ To enable you need to ensure a few things first:

```yaml
- name: Generate TF docs
uses: terraform-docs/gh-actions@v0.11.0
uses: terraform-docs/gh-actions@v1.0.0
with:
find-dir: examples/
```
Expand All @@ -170,13 +183,13 @@ To enable you need to ensure a few things first:

```yaml
- name: Generate TF docs
uses: terraform-docs/gh-actions@v0.11.0
uses: terraform-docs/gh-actions@v1.0.0
with:
working-dir: examples/
recursive: true
recursive-path: modules
```

Complete examples can be found [here](https://github.com/terraform-docs/gh-actions/tree/v0.11.0/examples).
Complete examples can be found [here](https://github.com/terraform-docs/gh-actions/tree/v1.0.0/examples).

[terraform-docs]: https://github.com/terraform-docs/terraform-docs
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ outputs:

runs:
using: docker
image: "docker://quay.io/terraform-docs/gh-actions:edge"
image: "docker://quay.io/terraform-docs/gh-actions:1.0.0"
env:
INPUT_WORKING_DIR: ${{ inputs.working-dir }}
INPUT_ATLANTIS_FILE: ${{ inputs.atlantis-file }}
Expand Down

0 comments on commit f6d59f8

Please sign in to comment.