-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 921 Bytes
/
docs.yaml
File metadata and controls
34 lines (31 loc) · 921 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
name: Generate Terraform Docs
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
modules:
uses: ./.github/workflows/modules.yaml
with:
ref: ${{ github.event.pull_request.head.ref }}
docs:
runs-on: ubuntu-latest
needs: modules
if: ${{ needs.modules.outputs.modules != '[]' }}
strategy:
fail-fast: true
matrix:
module: ${{ fromJson(needs.modules.outputs.modules) }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: terraform-docs/gh-actions@v1.0.0
env:
ACTIONS_STEP_DEBUG: "true"
with:
git-push: "true"
output-file: README.md
working-dir: ${{ matrix.module }}
config-file: .terraform-docs.yml
git-commit-message: 'docs(${{ matrix.module }}): generating terraform-docs'