Skip to content

Commit

Permalink
Merge pull request #6 from GCPartner/terraform-docs
Browse files Browse the repository at this point in the history
feat: terraform-docs github-action
  • Loading branch information
jgavinray authored Jun 25, 2022
2 parents ef1d4f2 + 875c3d5 commit d17c081
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 d17c081

Please sign in to comment.