Skip to content

Commit

Permalink
Improve log output
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Feb 2, 2024
1 parent 768aac6 commit 0eab588
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,17 @@ jobs:
id: plan
run: |
echo "terraform_plan<<EOF" >> "$GITHUB_OUTPUT"
terraform plan -no-color >> "$GITHUB_OUTPUT"
echo "$ terraform plan" >> "$GITHUB_OUTPUT"
terraform plan -no-color || echo "failed to run terraform plan" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
continue-on-error: true

- name: Terraform Apply
id: apply
run: |
echo "terraform_apply<<EOF" >> "$GITHUB_OUTPUT"
terraform apply -auto-approve -no-color >> "$GITHUB_OUTPUT"
echo "$ terraform apply -auto-approve" >> "$GITHUB_OUTPUT"
terraform apply -auto-approve -no-color || echo "failed to run terraform apply" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
continue-on-error: true

Expand Down

0 comments on commit 0eab588

Please sign in to comment.