generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.07 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
40
41
name: generate terraform docs
on:
push:
branches-ignore:
- main
paths-ignore:
- '.github/**/*'
- 'scripts/**/*'
workflow_dispatch:
permissions:
contents: write # Required to update documentation in the repo
pull-requests: write
jobs:
tf-docs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@v4.2.2
with:
ref: ${{ github.ref }}
# Creates provider documentation for registry.terraform.io
- name: Render terraform docs for microsoft365 graph v1.0 + beta
uses: terraform-docs/gh-actions@v1.3.0
with:
config-file: .terraform-docs.yml
find-dir: examples/
# recursive: true
indention: 3
output-file: README.md
output-method: inject
git-push: "true"
git-commit-message: "terraform-docs: automated action"
git-push-user-name: "github-actions[bot]"
git-push-user-email: "github-actions[bot]@users.noreply.github.com"