Skip to content

Commit

Permalink
fix apply always skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcorr authored Oct 7, 2021
1 parent f98e0b0 commit 8d22259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
environment: production
outputs:
runApply: ${{ steps.tf-plan.outputs.exitcode == 2 }}
tfplanExitCode: ${{ steps.tf-plan.outputs.exitcode }}

steps:
# Checkout the repository to the GitHub Actions runner
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
terraform-apply:
name: 'Terraform Apply'
if: github.ref == 'refs/heads/main' && needs.terraform-plan.outputs.runApply == 1
if: github.ref == 'refs/heads/main' && needs.terraform-plan.outputs.tfplanExitCode == 2
runs-on: ubuntu-latest
environment: production-approval
needs: [terraform-plan]
Expand Down

0 comments on commit 8d22259

Please sign in to comment.