File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,21 @@ jobs:
21
21
22
22
docs :
23
23
name : Docs
24
- runs-on : macos -latest
24
+ runs-on : ubuntu -latest
25
25
steps :
26
26
- uses : actions/checkout@master
27
- - name : Install Deps
27
+ - uses : actions/setup-python@v2
28
+ - name : Install terraform-docs
28
29
run : |
29
- # Temporary fix for https://github.com/actions/virtual-environments/issues/1811
30
- brew untap local/homebrew-openssl
31
- brew untap local/homebrew-python2
32
- brew update
33
- brew install pre-commit terraform-docs terraform
30
+ tf_docs_download_url=$(curl -s https://api. github.com/repos/terraform-docs/terraform-docs/releases/latest | jq -rc '.assets[] | select( .name | contains("linux-amd64")).browser_download_url')
31
+ mkdir -p $GITHUB_WORKSPACE/bin
32
+ curl -sLo $GITHUB_WORKSPACE/bin/terraform-docs $tf_docs_download_url
33
+ chmod +x $GITHUB_WORKSPACE/bin/terraform-docs
34
+ echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
34
35
- name : Check Docs
35
- run : pre-commit run --show-diff-on-failure --all-files terraform_docs
36
+ uses :
pre-commit/[email protected]
37
+ with :
38
+ extra_args : --show-diff-on-failure --all-files terraform_docs
36
39
37
40
validate :
38
41
name : Validate
You can’t perform that action at this time.
0 commit comments