Skip to content

Commit 2274e3a

Browse files
committed
ci: adds new workflow for checks and document generation
1 parent 25fd071 commit 2274e3a

File tree

2 files changed

+11
-39
lines changed

2 files changed

+11
-39
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pre-Commit
1+
name: Terraform Docs & Checks
22

33
on:
44
push:
@@ -11,28 +11,35 @@ on:
1111
- master
1212

1313
env:
14-
TERRAFORM_DOCS_VERSION: v0.16.0
14+
TERRAFORM_DOCS_VERSION: v0.18.0
1515
TFLINT_VERSION: v0.50.3
1616

1717
jobs:
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 }}

.github/workflows/documentation.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)