entur / gha-terraform

Repository with reusable workflows for terraform lint, plan and apply
European Union Public License 1.2
0 stars 2 forks source link

fix: make workflow run correct when triggered from push event #52

Closed bvestli closed 3 months ago

bvestli commented 3 months ago

The workflow failed when called from a push event due to a dependency to be called from a PR event. This will remove the dependency to a PR event. An output is added with the status from the apply which can be used to post information to somewhere useful.

github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: No Changes

The result of terraform plan in environment: DEV


No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: Changes Detected 📖

The result of terraform plan in environment: DEV


Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # null_resource.dummy will be created
  + resource "null_resource" "dummy" {
      + id       = (known after apply)
      + triggers = {
          + "always_run" = (known after apply)
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: Plan Failed

The result of terraform plan in environment: DEV


Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform planned the following actions, but then encountered a problem:

  # null_resource.dummy will be created
  + resource "null_resource" "dummy" {
      + id       = (known after apply)
      + triggers = {
          + "always_run" = (known after apply)
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: No Changes

The result of terraform plan in environment: DEV


No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: Changes Detected 📖

The result of terraform plan in environment: DEV


Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # null_resource.dummy will be created
  + resource "null_resource" "dummy" {
      + id       = (known after apply)
      + triggers = {
          + "always_run" = (known after apply)
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: No Changes

The result of terraform plan in environment: DEV


No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
github-actions[bot] commented 3 months ago

Terraform Plan DEV

Status: Changes Detected 📖

The result of terraform plan in environment: DEV


Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # null_resource.dummy will be created
  + resource "null_resource" "dummy" {
      + id       = (known after apply)
      + triggers = {
          + "always_run" = (known after apply)
        }
    }

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