Bump terraform-docs/gh-actions from 62a6cc597a9a2ee6953471d4c9cc1668c66ebf36 to 72ed18e5751c95dc36107dff832598081ff56eb9 #38
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: | |
- master | |
jobs: | |
formatting: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: terraform fmt | |
uses: dflook/terraform-fmt-check@5e2043f1289bfaf0e568855ca2513aa13e9ac04f | |
docs: | |
needs: formatting | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Render terraform docs inside the README.md and push changes back to PR branch | |
uses: terraform-docs/gh-actions@72ed18e5751c95dc36107dff832598081ff56eb9 | |
with: | |
working-dir: . | |
output-file: README.md | |
output-method: inject | |
output-format: markdown table | |
git-push: "true" |