Releases: cloudposse/github-action-atmos-terraform-plan
Releases · cloudposse/github-action-atmos-terraform-plan
v5.7.1
fix: Trigger release @goruha (#128)
## what * Added whitespace to trigger releaseWhy
- The latest release failed to be cut due test failure. Test fixed, so we need to issue a new release
References
feat: Add `has-changes` output to expose plan change detection @jamengual (#125)
## Summary- Adds a new
has-changesoutput that exposes whether the Terraform plan contains infrastructure changes - The output is a string value of
"true"or"false"
Motivation
Currently, consumers who want to conditionally run steps based on whether the plan has changes must parse the summary output. The action already computes this internally (used for Infracost integration), but doesn't expose it.
This change simply exposes the existing steps.atmos-plan.outputs.changes value as a proper action output.
Usage
- uses: cloudposse/github-action-atmos-terraform-plan@v4
id: plan
with:
component: mycomponent
stack: dev
- if: steps.plan.outputs.has-changes == 'true'
run: echo "Infrastructure changes detected"Test plan
- Verify output is
"true"when plan has changes - Verify output is
"false"when plan has no changes
🚀 Enhancements
Fix tests @goruha (#127)
This pull request introduces a minor improvement to the GitHub Actions workflow and action metadata. The main changes involve cleaning up formatting in the workflow output and adding a new output to the action.Action output enhancement:
- Added a new output
has-changestoaction.yml, which indicates whether the Terraform plan has changes, with the value being the string'true'or'false'.
Workflow formatting cleanup:
- Removed unnecessary blank lines in the
expectedandactualoutput sections of.github/workflows/test-failed-plan-drift.ymlto improve output readability and consistency. [1] [2]
v5.7.0
v5.6.0
fixing cache key to match apply action cache key @jamengual (#121)
This pull request updates the `action.yml` workflow to improve how component paths are handled and cached. The main change is the introduction of a new output, `component_cache_path`, which stores the absolute path to the component for more reliable referencing in subsequent steps.Improvements to path handling and caching:
- Added calculation of
COMPONENT_CACHE_PATHusingrealpathto ensure the component path is absolute, and exposed it as a new output variable (component_cache_path) for use in later steps. [1] [2] - Updated the cache restore step to use
component_cache_pathinstead of the relativecomponent_path, improving robustness when referencing the.terraformdirectory.
v5.5.0
Add conditional for Atmos installation step @jamengual (#120)
This pull request introduces a small conditional improvement to the workflow configuration. The change ensures that the Atmos installation step only runs when an Atmos version is explicitly provided.v5.4.0
v5.3.0
v5.2.2
v5.2.1
🚀 Enhancements
Fix working directory path syntax in action.yml @goruha (#116)
## what * Fix plan errorwhy
- Planning had raise the error
Error: An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/github-action-atmos-terraform-apply/github-action-atmos-terraform-apply/.//home/runner/work/github-action-atmos-terraform-apply/github-action-atmos-terraform-apply/tests/opentofu/components/terraform/foobar'. No such file or directory