Skip to content

Commit

Permalink
Install a specific version of terraform-docs
Browse files Browse the repository at this point in the history
Note that this change is dependent on the merging of
cisagov/setup-env-github-action#31.

Co-authored-by: Nick M. <[email protected]>
  • Loading branch information
jsf9k and mcdonnnj committed Jul 11, 2021
1 parent 1d37c5f commit 8496533
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ jobs:
sudo mv /usr/local/bin/terraform /usr/local/bin/terraform-default
sudo ln -s /opt/terraform/terraform /usr/local/bin/terraform
- name: Install Terraform-docs
run: GO111MODULE=on go get github.com/terraform-docs/terraform-docs
run: |
GO111MODULE=on go get \
github.com/terraform-docs/terraform-docs@${TERRAFORM_DOCS_VERSION}
- name: Find and initialize Terraform directories
run: |
for path in $(find . -not \( -type d -name ".terraform" -prune \) \
Expand Down

0 comments on commit 8496533

Please sign in to comment.