chore(deps): update terraform aws to v5.16.2 #184
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: Pull Request check | |
on: | |
pull_request_target: | |
paths: | |
- "**/*.tf" | |
- "**/*.hcl" | |
concurrency: "terraform" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v3 | |
- name: Init TFLint | |
run: tflint --init | |
- name: Run TFLint | |
# working-directory: . | |
run: tflint -f compact | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v2 | |
- name: Validate Terraform | |
run: | | |
terraform init | |
terraform validate | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
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@v1 | |
with: | |
working-dir: . | |
output-file: README.md | |
output-method: inject | |
git-push: "true" | |