Skip to content

Commit dc37e3d

Browse files
authored
Fix tflint downalod and install (#2347)
1 parent c1f1bf7 commit dc37e3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/actions/terraform-validate/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ runs:
2727
id: setup
2828
run: |
2929
${{ github.action_path }}/../.helpers/box.sh "Setting up build environment"
30-
echo -e "Installing TFLint"
31-
curl -L "$(curl -Ls https://api.github.com/repos/terraform-linters/tflint/releases/74267234 | grep -o -E "https://.+?_linux_amd64.zip")" -o tflint.zip && unzip tflint.zip && rm tflint.zip
30+
curl -Ls https://api.github.com/repos/terraform-linters/tflint/releases/74267234 \
31+
| jq -r '.assets[] | select(.name == "tflint_linux_amd64.zip") | .browser_download_url' \
32+
| xargs curl -L -o tflint.zip
33+
unzip tflint.zip
34+
rm tflint.zip
3235
echo -e "\n"
3336
shell: bash
3437
working-directory: "${{ inputs.build_path }}"

0 commit comments

Comments
 (0)