-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (39 loc) · 1.46 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
42
43
44
45
# Copyright (c) CloudBees, Inc.
---
name: "Documentation: terraform-docs"
on:
pull_request:
paths:
- '**.tf'
- '**.yaml'
- '**.yml'
jobs:
docs:
name: Terraform_Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Render documentation and push changes back to branch
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # v1.0.0
with:
config-file: ".terraform-docs.yml"
output-file: "README.md"
output-method: inject
git-push: true
- name: Render documentation for `01-getting-started` example and push changes back to branch
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # v1.0.0
with:
config-file: ".terraform-docs.yml"
output-file: "README.md"
git-push: true
working-dir: "./blueprints/01-getting-started"
- name: Render documentation for `02-at-scale` example and push changes back to branch
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # v1.0.0
with:
config-file: ".terraform-docs.yml"
output-file: "README.md"
git-push: true
working-dir: "./blueprints/02-at-scale"