From a96d19906f054b9f496a8c66745007e599611b54 Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Wed, 10 Jan 2024 12:05:26 +0000 Subject: [PATCH] v1.40.0 --- README.md | 27 ++++++++++++++++----------- action.yaml | 4 +++- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 03a54ea..8e23676 100644 --- a/README.md +++ b/README.md @@ -308,11 +308,24 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/ - Type: boolean +* `plan_path` + + This is the path to the generated plan in an opaque binary format. + The path is relative to the Actions workspace. + + The plan can be used as the `plan_file` input to the [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/tree/main/terraform-apply) action. + + Terraform plans often contain sensitive information, so this output should be treated with care. + + - Type: string + * `json_plan_path` This is the path to the generated plan in [JSON Output Format](https://www.terraform.io/docs/internals/json-format.html) The path is relative to the Actions workspace. + Terraform plans often contain sensitive information, so this output should be treated with care. + - Type: string * `text_plan_path` @@ -323,20 +336,12 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/ - Type: string * `to_add` - - The number of resources that would be added by this plan. - - - Type: number - * `to_change` - - The number of resources that would be changed by this plan. - - - Type: number - * `to_destroy` +* `to_move` +* `to_import` - The number of resources that would be destroyed by this plan. + The number of resources that would be affected by each type of operation. - Type: number diff --git a/action.yaml b/action.yaml index 311cdbe..31aa67a 100644 --- a/action.yaml +++ b/action.yaml @@ -63,6 +63,8 @@ outputs: description: The number of resources that would be changed by this plan to_destroy: description: The number of resources that would be destroyed by this plan + plan_path: + description: Path to a file in the workspace containing the generated plan in an opaque binary format. text_plan_path: description: Path to a file in the workspace containing the generated plan in human readable format. json_plan_path: @@ -72,7 +74,7 @@ outputs: runs: using: docker - image: docker://danielflook/terraform-github-actions@sha256:58b279738cab51c9bb4b8201afeff9e585ce72f9a30ee0490896ad8827e7e96b + image: docker://danielflook/terraform-github-actions@sha256:4c0a6f98ddafa03699d7fb059010f6b5f88d5a8903d1d2e66660ec799de9efad entrypoint: /entrypoints/plan.sh branding: