Skip to content

Releases: cloudposse/github-action-atmos-terraform-plan

v5.7.1

14 Jan 18:17
d4e329e

Choose a tag to compare

fix: Trigger release @goruha (#128) ## what * Added whitespace to trigger release

Why

  • 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-changes output 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-changes to action.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 expected and actual output sections of .github/workflows/test-failed-plan-drift.yml to improve output readability and consistency. [1] [2]

v5.7.0

18 Dec 21:34
2fd4126

Choose a tag to compare

v5.6.0

21 Nov 19:18
a0db945

Choose a tag to compare

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_PATH using realpath to 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_path instead of the relative component_path, improving robustness when referencing the .terraform directory.

v5.5.0

21 Nov 14:19
9e3bc38

Choose a tag to compare

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

07 Nov 19:19
fd1077b

Choose a tag to compare

feat: `identity` Input for Atmos Auth @milldr (#119) ## what - Add support for Atmos auth identity in Terraform command

why

  • We want to specify an Atmos Auth identity to run terraform

references

v5.3.0

03 Oct 20:41
75d86df

Choose a tag to compare

Add TFCMT_GITHUB_TOKEN to action.yml @goruha (#117) ## what * Added TFCMT_GITHUB_TOKEN environment variable to the action.

why

  • Provide permissions to publish PR comments

references

v5.2.2

03 Oct 20:15
8cedd94

Choose a tag to compare

🚀 Enhancements

fix: Atmos Pro Flags @milldr (#118) ## what - Updating flags for Atmos Pro

why

  • We have released this for the Atmos CLI now, and now we need to update the flags we landed on

references

v5.2.1

01 Oct 05:54

Choose a tag to compare

🚀 Enhancements

Fix working directory path syntax in action.yml @goruha (#116) ## what * Fix plan error

why

  • 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

References

🤖 Automatic Updates

Replace Makefile with atmos.yaml @osterman (#113) ## what - Remove `Makefile` - Add `atmos.yaml`

why

  • Replace build-harness with atmos for readme genration

References

  • DEV-3229 Migrate from build-harness to atmos

v5.2.0

28 Jul 19:32
dbe14df

Choose a tag to compare

feat: Optionally Disable Plan Storage @milldr (#107) ## what - Add plan storage option for storing Terraform plan files

why

  • We want to optionally disable plan storage. Without plan storage, Terraform will need to be planned on the apply step as well

references

v5.1.2

27 Jun 10:15

Choose a tag to compare

Atmos pro deployments status upload @goruha (#106) ## what * Atmos pro deployments status upload

why

  • Integrate action with Atmos pro

🤖 Automatic Updates

Replace Makefile with atmos.yaml @osterman (#105) ## what - Remove `Makefile` - Add `atmos.yaml`

why

  • Replace build-harness with atmos for readme genration

References

  • DEV-3229 Migrate from build-harness to atmos