Skip to content

Commit

Permalink
Fixed drift and unit test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Artagame committed Nov 8, 2024
1 parent 5bd600c commit 095c8eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tf-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: tf-plan
run: |
export exitcode=0
terraform plan -detailed-exitcode -no-color -out tfplan || export exitcode=$?
terraform plan -var-file='variables/dev.tfvars' -detailed-exitcode -no-color -out terraform.tfplan || export exitcode=$?
echo "exitcode=$exitcode" >> $GITHUB_OUTPUT
Expand All @@ -62,13 +62,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: tfplan
path: tfplan
path: tf/terraform.tfplan

# Create string output of Terraform Plan
- name: Create String Output
id: tf-plan-string
run: |
TERRAFORM_PLAN=$(terraform show -no-color tfplan)
TERRAFORM_PLAN=$(terraform show -no-color terraform.tfplan)
delimiter="$(openssl rand -hex 8)"
echo "summary<<${delimiter}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 095c8eb

Please sign in to comment.