-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (34 loc) · 993 Bytes
/
terraform-docs.yml
File metadata and controls
38 lines (34 loc) · 993 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
37
38
---
# Copyright (c) NetApp, Inc.
# SPDX-License-Identifier: Apache-2.0
name: "Documentation: terraform-docs"
on:
pull_request:
paths:
- 'Infrastructure_as_Code/Terraform/**'
push:
paths:
- 'Infrastructure_as_Code/Terraform/**'
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
directory:
- 'Infrastructure_as_Code/Terraform/deploy-fsx-ontap/module'
- 'Infrastructure_as_Code/Terraform/deploy-fsx-ontap/standalone-module'
steps:
- name: Checkout pull request
uses: actions/checkout@v3.5.0
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render documentation and push changes back to branch
uses: terraform-docs/gh-actions@v1.0.0
with:
working-dir: ${{ matrix.directory }}
config-file: ".terraform-docs.yml"
output-file: "README.md"
output-method: inject
git-push: true