Merge pull request #946 from nupplaphil/enh/output #254
Workflow file for this run
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
name: Generate terraform docs | |
on: | |
push: | |
branches: | |
- staging | |
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: . | |
git-push: "true" | |
output-file: docs/terraform.md | |
output-method: inject | |
config-file: ".terraform-docs.yml" |