Skip to content

Commit 9225508

Browse files
committed
Better docs
1 parent b6802ce commit 9225508

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.githooks/pre-commit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ if command_exists typos; then
3434
echo "$files" | xargs typos
3535
fi
3636

37-
if command_exists ./node_modules/.bin/prettier; then
38-
echo "$files" | xargs ./node_modules/.bin/prettier --ignore-unknown --write
39-
fi
40-
4137
if command_exists terraform-docs; then
4238
cd asset-account/terraform/stack-set
4339
terraform-docs markdown . --output-file README.md
4440
fi
4541

42+
if command_exists ./node_modules/.bin/prettier; then
43+
echo "$files" | xargs ./node_modules/.bin/prettier --ignore-unknown --write
44+
fi
45+
4646
# Add the modified/prettified files to staging
4747
echo "$files" | xargs git add
4848

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
--location
5858
--retry 5 \
5959
--retry-all-errors \
60-
--show-error |
61-
tar -xz > ./terraform-docs
60+
--show-error \
61+
| tar -xz > ./terraform-docs
6262
6363
- run: chmod +x ./terraform-docs
6464

asset-account/terraform/stack-set/variables.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ variable "operation_preferences" {
112112
max_concurrent_count = optional(number)
113113
max_concurrent_percentage = optional(number)
114114

115-
# Region settings are not supported, because there must be at most one stack per account in a single region.
115+
# Region settings are not supported, because
116+
# there must be at most one stack per account
117+
# in a single region.
116118
})
117119
default = null
118120
}

0 commit comments

Comments
 (0)