Skip to content

Conversation

@jamengual
Copy link
Contributor

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]

Exposes the existing internal change detection as a new action output,
allowing workflows to easily check if the Terraform plan contains changes.
The test was failing because the expected string in the contains
assertion had extra blank lines and whitespace-only lines that
the Go templates don't actually produce. Simplified the expected
value to match actual template output.
@github-actions
Copy link

github-actions bot commented Jan 12, 2026

Changes Found for foobar/changes in plat-ue2-sandbox


create

Plan: 1 to add, 0 to change, 0 to destroy.
To reproduce this locally, run:

atmos terraform plan foobar/changes -s plat-ue2-sandbox

Create

+ random_id.foo[0]
Terraform Plan Summary
  # random_id.foo[0] will be created
  + resource "random_id" "foo" {
      + b64_std     = (known after apply)
      + b64_url     = (known after apply)
      + byte_length = 8
      + dec         = (known after apply)
      + hex         = (known after apply)
      + id          = (known after apply)
      + keepers     = {
          + "seed" = "foo-plat-ue2-sandbox-blue"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Warning: Test warning summary

  with data.validation_warning.warn[0],
  on main.tf line 20, in data "validation_warning" "warn":
  20: data "validation_warning" "warn" {

Test warning details

Warning

Warning: Test warning summary

  with data.validation_warning.warn[0],
  on main.tf line 20, in data "validation_warning" "warn":
  20: data "validation_warning" "warn" {

Test warning details

@jamengual jamengual changed the title Feat/add has changes output fix: fix tests Jan 12, 2026
@goruha goruha closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants