Skip to content

Commit 0dc8eaf

Browse files
committed
Test getting latest tflint
1 parent 86695ef commit 0dc8eaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
- run:
2424
name: "Install: tflint"
2525
command: |
26-
apk add wget
26+
apk add jq wget
27+
pkg_arch=linux_amd64
28+
dl_url=$(curl -s https://api.github.com/repos/wata727/tflint/releases/latest | jq -r ".assets[] | select(.name | test(\"${pkg_arch}\")) | .browser_download_url")
29+
echo "Download URL: ${dl_url}"
30+
#wget ${dl_url}
2731
wget https://github.com/wata727/tflint/releases/download/v0.5.4/tflint_linux_amd64.zip
2832
unzip tflint_linux_amd64.zip
2933
mkdir -p /usr/local/tflint/bin

0 commit comments

Comments
 (0)