Skip to content

Commit 8372452

Browse files
committed
Add prettier
1 parent a38358e commit 8372452

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,16 @@ jobs:
5252

5353
strategy:
5454
matrix:
55-
project:
55+
terraform_module:
5656
- asset-account/terraform/stack-set
5757

5858
steps:
5959
- uses: actions/checkout@v4
60+
- uses: actions/setup-node@v4
61+
with:
62+
node-version: "22"
63+
cache: "npm"
64+
- run: npm ci --ignore-scripts
6065

6166
- run: |
6267
curl https://github.com/terraform-docs/terraform-docs/releases/download/v0.19.0/terraform-docs-v0.19.0-linux-amd64.tar.gz \
@@ -66,13 +71,15 @@ jobs:
6671
--retry-all-errors \
6772
--show-error \
6873
| tar -xz > ./terraform-docs
69-
working-directory: ${{ matrix.project }}
74+
working-directory: ${{ matrix.terraform_module }}
7075
7176
- run: chmod +x ./terraform-docs
72-
working-directory: ${{ matrix.project }}
77+
working-directory: ${{ matrix.terraform_module }}
7378

74-
- run: ./terraform-docs markdown . > README.md
75-
working-directory: ${{ matrix.project }}
79+
- run: ./terraform-docs markdown . --output-file README.md
80+
working-directory: ${{ matrix.terraform_module }}
81+
82+
- run: npx prettier -w .
7683

7784
- run: >-
7885
git diff --exit-code --color=always || ( echo "Terraform docs are

0 commit comments

Comments
 (0)