Skip to content

Update github action: seperate job steps #2

Update github action: seperate job steps

Update github action: seperate job steps #2

Workflow file for this run

name: Run Terraform commands
on:
push:
branches:
- main
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
terraform-fmt:
runs-on: ubuntu-latest
steps:
- name: Run terraform fmt
uses: dflook/terraform-fmt@v1
with:
path: .
terraform-validate:
runs-on: ubuntu-latest
steps:
- name: Run terraform validate
uses: dflook/terraform-validate@v1
with:
path: .
tfdocs:
runs-on: ubuntu-latest
steps:
- name: Render Terraform docs
uses: terraform-docs/gh-actions@v1.1.0
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"