Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanDumortier committed Apr 19, 2024
1 parent f78ce85 commit 84911f4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tfdocs.yaml → .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate terraform docs
name: Run Terraform commands

on:
push:
Expand All @@ -13,10 +13,20 @@ jobs:
with:
ref: main

- name: Render terraform docs and append to end of README.md
- name: Run terraform fmt
uses: dflook/terraform-fmt@v1
with:
path: .

- name: Run terraform validate
uses: dflook/terraform-validate@v1
with:
path: .

- name: Render Terraform docs
uses: terraform-docs/[email protected]
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"
#git-push: "true"

0 comments on commit 84911f4

Please sign in to comment.