Automate running terraform docs 66 #1
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: | |
pull_request: | |
paths: | |
- "**/*.tf" | |
jobs: | |
terraform-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Generate Terraform docs terraform-modules | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: terraform-modules | |
output-file: README.md | |
output-method: inject | |
git-push: "true" | |
- name: Generate Terraform docs terraform-incubator access-the-data | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: terraform-incubator/access-the-data | |
output-file: README.md | |
output-method: inject | |
git-push: "true" | |
- name: Generate Terraform docs terraform-incubator shared_resources vrms-backend people-depot | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: terraform-incubator/shared_resources,terraform-incubator/vrms-backend, terraform-incubator/people-depot | |
output-file: README.md | |
recursive: true | |
recursive-path: . | |
output-method: inject | |
git-push: "true" |