Skip to content

Commit

Permalink
feat: add GitHub workflow for generating Terraform documentation on p…
Browse files Browse the repository at this point in the history
…ull requests
  • Loading branch information
Gezi-lzq committed Nov 11, 2024
1 parent 0f916fb commit dfacbcc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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 and push changes back to PR
uses: terraform-docs/gh-actions@main
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"

0 comments on commit dfacbcc

Please sign in to comment.