Skip to content

Commit 3bbd727

Browse files
terraform docs workflow DEVOPS-270
1 parent 6184e3a commit 3bbd727

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Generate terraform docs
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
generate-terraform-docs:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.head.ref }}
19+
20+
- name: Render terraform docs and push changes back to PR
21+
uses: terraform-docs/gh-actions@main
22+
with:
23+
recursive: true
24+
config-file: .terraform-docs.yml
25+
output-file: README.md
26+
output-method: inject
27+
git-push: "true"

0 commit comments

Comments
 (0)