Skip to content

Commit

Permalink
autoSync by Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
shanye997 committed Jun 24, 2024
1 parent 9f07e5a commit f4f0a90
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions scripts/terraform-test.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/usr/bin/env sh

terraformVersionFile="tfversion.md"
echo "" > $terraformVersionFile
version=""
updateFolder="examples/complete"
tfvars="tfvars/01-update.tfvars"

f=${1}
success=true
# echo $f
exitCode=0
terraformVersionFile="tfversion.md"

if [ $# -ge 2 ]; then
echo "" > $terraformVersionFile
fi

echo ""
echo "====> Terraform testing in" $f
# init
Expand Down Expand Up @@ -105,7 +108,9 @@ if [[ $exitCode -ne 1 ]]; then
rm -rf $f/.terraform.lock.hcl
fi

echo -e "### Versions\n" >> $terraformVersionFile
echo -e "${version}" >> $terraformVersionFile
if [ $# -ge 2 ]; then
echo -e "### Versions\n" >> $terraformVersionFile
echo -e "${version}" >> $terraformVersionFile
fi

exit $exitCode

0 comments on commit f4f0a90

Please sign in to comment.