Bump terraform-docs/gh-actions from cfde42f79b15256c71f4b79ae1d6acea0f689952 to 7c16aaaacc92335d6d5c5d43778448deebaa3798 #34
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: Terraform docs and formatting | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
push: | |
branches: | |
- main | |
jobs: | |
formatting: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: terraform fmt | |
uses: dflook/terraform-fmt-check@dfdb4a7603d5b0b3ae6fa459df4d6f85383898a8 | |
docs: | |
runs-on: ubuntu-22.04 | |
needs: formatting | |
steps: | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | |
with: | |
ref: ${{ github.ref }} | |
- name: Render terraform docs and push changes back to PR branch | |
uses: terraform-docs/gh-actions@7c16aaaacc92335d6d5c5d43778448deebaa3798 | |
with: | |
working-dir: . | |
output-file: README.md | |
output-method: inject | |
git-push: "true" |