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 3838 f=$(echo $f | xargs echo -n)
3939 (echo "===> Terraform fmt checking in" $f && terrafmt diff $f --check) || error=true
4040 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"
4543 exit 1
4644 fi
4745 done
6563 if [ -z "${{ github.event.number }}" ]; then
6664 CHANGED_FOLDERS=$(find ./quickstarts -maxdepth 1 -mindepth 1 -type d | tr '\n' ',')
6765 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
7068 unzip terraform_1.6.0_linux_amd64.zip -d /usr/local/bin/
7169 fi
7270 sh scripts/terraform-validate.sh
You can’t perform that action at this time.
0 commit comments