Skip to content

Commit

Permalink
feat(ci): add terraform docs on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Henrique Toigo committed Oct 11, 2024
1 parent 31f1bcc commit c31deb0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tf_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Generate terraform docs
on:
- pull_request
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- 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 c31deb0

Please sign in to comment.