File tree Expand file tree Collapse file tree 2 files changed +11
-39
lines changed
Expand file tree Collapse file tree 2 files changed +11
-39
lines changed Original file line number Diff line number Diff line change 1- name : Pre-Commit
1+ name : Terraform Docs & Checks
22
33on :
44 push :
1111 - master
1212
1313env :
14- TERRAFORM_DOCS_VERSION : v0.16 .0
14+ TERRAFORM_DOCS_VERSION : v0.18 .0
1515 TFLINT_VERSION : v0.50.3
1616
1717jobs :
18- docs :
18+ generateDocs :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout repository
2222 uses : actions/checkout@v4
2323 with :
2424 ref : ${{ github.event.pull_request.head.ref }}
2525
26- - name : Render terraform docs and push changes back to PR
26+ - name : Render and Push terraform docs for main and modules
2727 uses : terraform-docs/gh-actions@main
2828 with :
2929 working-dir : .
3030 git-push : true
3131 config-file : .terraform-docs.yaml
3232
33+ - name : Render and Push terraform docs for examples
34+ uses : terraform-docs/gh-actions@main
35+ with :
36+ working-dir : .
37+ git-push : true
38+ config-file : .terraform-docs-example.yaml
3339
3440 collectInputs :
3541 name : Collect workflow inputs
42+ needs : generateDocs
3643 runs-on : ubuntu-latest
3744 outputs :
3845 directories : ${{ steps.dirs.outputs.directories }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments