should only warn if the readme is out of sync #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
on: ["pull_request"] | |
jobs: | |
tf-fmt: | |
name: tf-fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: ~1.0 | |
- run: terraform fmt -check -recursive | |
tf-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Render TF docs and push changes to PR | |
uses: terraform-docs/gh-actions@main | |
with: | |
output-file: README.md # The action doesn't appear to read this from the config file | |
fail-on-diff: "true" |