Bump actions/checkout from 4.2.1 to 4.2.2 #73
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@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: terraform fmt | |
uses: dflook/terraform-fmt-check@c9309dc072b71dded0f23b29e3ffd4406e27c078 | |
docs: | |
runs-on: ubuntu-22.04 | |
needs: formatting | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
ref: ${{ github.ref }} | |
- name: Render terraform docs and push changes back to PR branch | |
uses: terraform-docs/gh-actions@aeae0038ed47a547e0c0fca5c059d3335f48fb25 | |
with: | |
working-dir: . | |
output-file: README.md | |
output-method: inject | |
git-push: "true" |