-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (31 loc) · 986 Bytes
/
Copy pathterraform-docs.yml
File metadata and controls
36 lines (31 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Generate Terraform Documentation
on:
pull_request:
paths:
- "terraform/**/*.tf"
- "terraform/**/.terraform-docs.yml"
- ".github/workflows/terraform-docs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
terraform-docs:
name: Update Module Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Generate Terraform docs for module layers
uses: terraform-docs/gh-actions@v1.4.1
with:
find-dir: terraform/aws/modules
output-file: README.md
output-method: inject
config-file: terraform/aws/modules/.terraform-docs.yml
git-push: "true"
git-commit-message: "docs(terraform): auto-update module documentation [skip ci]"