-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f78ce85
commit 84911f4
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Generate terraform docs | ||
name: Run Terraform commands | ||
|
||
on: | ||
push: | ||
|
@@ -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" |