-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.42 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
# Copyright (c) CloudBees, Inc.
---
name: "Documentation: terraform-docs"
on:
push:
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 `getting-started/v4` 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/getting-started/v4"
- name: Render documentation for `getting-started/v5` 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/getting-started/v5"