Skip to content

Commit

Permalink
fix: gh action tf validate syntax
Browse files Browse the repository at this point in the history
sean-freeman committed Nov 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0789860 commit 8197a4c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/terraform_validate.yml
Original file line number Diff line number Diff line change
@@ -44,17 +44,18 @@ jobs:
cd "$d"
if [ "${{ matrix.terraform_module_parent }}" == "ibmcloud_powervs" ]
then
echo 'provider "ibm" {' > temp_provider.tf
echo ' alias = "main"' > temp_provider.tf
echo ' ibmcloud_api_key = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"' > temp_provider.tf
echo ' region = "eu-es"' > temp_provider.tf
echo '}' > temp_provider.tf
echo 'provider "ibm" {' > temp_provider.tf
echo ' alias = "powervs_secure_enclave"' > temp_provider.tf
echo ' ibmcloud_api_key = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"' > temp_provider.tf
echo ' region = "mad"' > temp_provider.tf
echo ' zone = "mad04"' > temp_provider.tf
echo '}' > temp_provider.tf
touch temp_provider.tf
echo 'provider "ibm" {' >> temp_provider.tf
echo ' alias = "main"' >> temp_provider.tf
echo ' ibmcloud_api_key = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"' >> temp_provider.tf
echo ' region = "eu-es"' >> temp_provider.tf
echo '}' >> temp_provider.tf
echo 'provider "ibm" {' >> temp_provider.tf
echo ' alias = "powervs_secure_enclave"' >> temp_provider.tf
echo ' ibmcloud_api_key = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"' >> temp_provider.tf
echo ' region = "mad"' >> temp_provider.tf
echo ' zone = "mad04"' >> temp_provider.tf
echo '}' >> temp_provider.tf
fi
terraform validate -no-color
cd ..

0 comments on commit 8197a4c

Please sign in to comment.