Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa6765 committed Jun 30, 2024
1 parent 4339a8c commit e70da03
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/terraform-terragrunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ jobs:
sudo mkdir $HOME/.terraform.d
cd $HOME/.terraform.d
sudo touch credentials.tfrc.json
tree $HOME/.terraform.d
echo "{\"credentials\": {\"app.terraform.io\": {\"token\": \"${{ secrets.TF_API_TOKEN }}\"}}}" > credentials.tfrc.json
sudo cat credentials.tfrc.json
ls -la /home/runner
echo "✅ Terraform CLI config directory created!"
- name: Configure Terraform Cloud credentials
env:
TERRAFORM_CREDENTIALS: $HOME/.terraform.d/credentials.tfrc.json
run: |
echo "{\"credentials\": {\"app.terraform.io\": {\"token\": \"${{ secrets.TF_API_TOKEN }}\"}}}" > $TERRAFORM_CREDENTIALS
echo "🔐 Terraform Cloud credentials configured!"

- name: Run symlink-modules.sh and select workspace
run: |
Expand Down

0 comments on commit e70da03

Please sign in to comment.