Skip to content

Commit

Permalink
Merge pull request #18 from descomplicando-terraform/tf_docs
Browse files Browse the repository at this point in the history
feat(ci): add terraform docs on pr
  • Loading branch information
jhtoigo authored Oct 11, 2024
2 parents 31f1bcc + ab22453 commit a171351
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/tf_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
Expand All @@ -53,4 +55,12 @@ jobs:
run: terraform init -backend=false

- name: Run terraform validate
run: terraform validate
run: terraform validate

- name: Render terraform docs inside the README.md and push changes back to PR branch
uses: terraform-docs/[email protected]
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"

0 comments on commit a171351

Please sign in to comment.