File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 38
38
f=$(echo $f | xargs echo -n)
39
39
(echo "===> Terraform fmt checking in" $f && terrafmt diff $f --check) || error=true
40
40
if ${error}; then
41
- echo "------------------------------------------------"
42
- echo ""
43
- echo "Some Terraform codes has not formated, and please running terraform fmt --recursive before pushing"
44
- echo ""
41
+ echo "${error}"
42
+ echo "Some Terraform codes has not been formated, and please running terraform fmt --recursive command before pushing"
45
43
exit 1
46
44
fi
47
45
done
65
63
if [ -z "${{ github.event.number }}" ]; then
66
64
CHANGED_FOLDERS=$(find ./quickstarts -maxdepth 1 -mindepth 1 -type d | tr '\n' ',')
67
65
fi
68
- if [ -f /usr/local/bin/terraform ]; then
69
- wget https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
66
+ if [ ! -f /usr/local/bin/terraform ]; then
67
+ wget -q https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
70
68
unzip terraform_1.6.0_linux_amd64.zip -d /usr/local/bin/
71
69
fi
72
70
sh scripts/terraform-validate.sh
You can’t perform that action at this time.
0 commit comments