Looks like the bug has been fixed. If you use the hashocorp/setup-terraform
GitHub Action, you can now reference the results of terraform commands through the outputs of the different steps.
Here is an example:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
run: |
terraform init
- name: Terraform Plan
id: plan
run: |
terraform plan -detailed-existcode
- name: Reference Past Step
run: |
echo ${{ steps.plan.outputs.exitcode}}