-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.05 KB
/
terraform-docs.yml
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
37
38
39
---
name: "Documentation: terraform-docs"
on:
push:
jobs:
docs:
runs-on: ubuntu-latest
strategy:
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast
fail-fast: false
matrix:
examples:
- "./examples/basic"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render documentation for Module and push changes back to branch
uses: terraform-docs/gh-actions@v1.0.0
with:
config-file: ".terraform-docs.yml"
output-file: "README.md"
output-method: inject
git-push: true
working-dir: "./"
- name: Render documentation for Examples and push changes back to branch
uses: terraform-docs/gh-actions@v1.0.0
with:
config-file: "../../.terraform-docs.yml"
output-file: "README.md"
output-method: inject
git-push: true
working-dir: "${{ matrix.examples }}"