|
8 | 8 | types: [apb]
|
9 | 9 |
|
10 | 10 | env:
|
| 11 | + BRANCH_NAME: improvement/support_atx_closed_markdown_headers |
11 | 12 | CURL_CACHE_DIR: ~/.cache/curl
|
| 13 | + DEPTH: 1 |
12 | 14 | PIP_CACHE_DIR: ~/.cache/pip
|
13 | 15 | PRE_COMMIT_CACHE_DIR: ~/.cache/pre-commit
|
| 16 | + REPO_URL: https://github.com/mcdonnnj/terraform-docs.git |
14 | 17 | RUN_TMATE: ${{ secrets.RUN_TMATE }}
|
15 | 18 |
|
16 | 19 | jobs:
|
@@ -124,11 +127,20 @@ jobs:
|
124 | 127 | PACKAGE_URL: honnef.co/go/tools/cmd/staticcheck
|
125 | 128 | PACKAGE_VERSION: ${{ steps.setup-env.outputs.staticcheck-version }}
|
126 | 129 | run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
|
127 |
| - - name: Install Terraform-docs |
128 |
| - env: |
129 |
| - PACKAGE_URL: github.com/terraform-docs/terraform-docs |
130 |
| - PACKAGE_VERSION: ${{ steps.setup-env.outputs.terraform-docs-version }} |
131 |
| - run: go install ${PACKAGE_URL}@${PACKAGE_VERSION} |
| 130 | + # We are temporarily using @mcdonnnj's forked branch of terraform-docs |
| 131 | + # until his PR: https://github.com/terraform-docs/terraform-docs/pull/745 |
| 132 | + # is approved. This temporary fix will allow for ATX Header Support when |
| 133 | + # terraform-docs is ran during lint. |
| 134 | + - name: Clone ATX Headers branch from Terraform-docs Fork |
| 135 | + run: | |
| 136 | + git clone --branch $BRANCH_NAME --single-branch \ |
| 137 | + --depth=$DEPTH $REPO_URL /tmp/terraform-docs |
| 138 | + - name: Build and Install Terraform-docs Binary |
| 139 | + run: | |
| 140 | + cd /tmp/terraform-docs |
| 141 | + GOBIN=$(go env GOPATH)/bin |
| 142 | + go build -o $GOBIN/terraform-docs |
| 143 | + echo "$GOBIN" >> $GITHUB_PATH |
132 | 144 | - name: Install dependencies
|
133 | 145 | run: |
|
134 | 146 | python -m pip install --upgrade pip setuptools wheel
|
|
0 commit comments