Skip to content

Commit 9399a5a

Browse files
committed
update pull_request.yml
1 parent b471016 commit 9399a5a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/pull_requests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ jobs:
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
@@ -65,8 +63,8 @@ jobs:
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

0 commit comments

Comments
 (0)