Skip to content

Commit

Permalink
Update github action: seperate job steps
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanDumortier committed Apr 19, 2024
1 parent 84911f4 commit a0a3381
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,36 @@ on:
- main

jobs:
docs:
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/[email protected]
with:
working-dir: .
output-file: README.md
output-method: inject
#git-push: "true"
git-push: "true"

0 comments on commit a0a3381

Please sign in to comment.