Skip to content

Commit 2699e09

Browse files
committed
Use setup-env outputs for Terraform-docs version
We change the "Install Terraform-docs" step to use two local environment variables to provide the package's URL and version to install. This allows us to work around `yamllint` line length limits.
1 parent 0851598 commit 2699e09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ jobs:
8787
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
8888
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
8989
- name: Install Terraform-docs
90-
run: |
91-
go install \
92-
github.com/terraform-docs/terraform-docs@${TERRAFORM_DOCS_VERSION}
90+
env:
91+
PACKAGE_URL: github.com/terraform-docs/terraform-docs
92+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.terraform-docs-version }}
93+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
9394
- name: Install dependencies
9495
run: |
9596
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)