forked from terraform-aws-modules/terraform-aws-eks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Bump terraform-docs to 0.13 (terraform-aws-modules#1335)
- Loading branch information
1 parent
d7bfbfe
commit ccd772f
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
uses: actions/setup-python@v2 | ||
- name: Terraform min/max versions | ||
id: minMax | ||
uses: clowdhaus/[email protected].1 | ||
uses: clowdhaus/[email protected].2 | ||
with: | ||
directory: ${{ matrix.directory }} | ||
- name: Install Terraform v${{ steps.minMax.outputs.minVersion }} | ||
|
@@ -50,14 +50,11 @@ jobs: | |
- name: Execute pre-commit | ||
# Run only validate pre-commit check on min version supported | ||
if: ${{ matrix.directory != '.' }} | ||
run: | ||
pre-commit run terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/* | ||
run: pre-commit run terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/* | ||
- name: Execute pre-commit | ||
# Run only validate pre-commit check on min version supported | ||
if: ${{ matrix.directory == '.' }} | ||
run: | ||
pre-commit run terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf) | ||
|
||
run: pre-commit run terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf) | ||
|
||
# Max Terraform version | ||
getBaseVersion: | ||
|
@@ -68,7 +65,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Terraform min/max versions | ||
id: minMax | ||
uses: clowdhaus/[email protected].1 | ||
uses: clowdhaus/[email protected].2 | ||
outputs: | ||
minVersion: ${{ steps.minMax.outputs.minVersion }} | ||
maxVersion: ${{ steps.minMax.outputs.maxVersion }} | ||
|
@@ -94,7 +91,7 @@ jobs: | |
- name: Install pre-commit dependencies | ||
run: | | ||
pip install pre-commit | ||
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v0.12\..+?-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/ | ||
curl -Lo ./terraform-docs.tar.gz https:/terraform-docs/terraform-docs/releases/download/v0.13.0/terraform-docs-v0.13.0-$(uname)-amd64.tar.gz && tar -xzf terraform-docs.tar.gz && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/ | ||
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/ | ||
- name: Execute pre-commit | ||
# Run all pre-commit checks on max version supported | ||
|