Skip to content

Commit 632d299

Browse files
committed
🔖 v1.33.0
1 parent ddba511 commit 632d299

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@ The actions are versioned as a suite. Some actions may have no change in behavio
88

99
When using an action you can specify the version as:
1010

11-
- `@v1.32.1` to use an exact release
12-
- `@v1.32` to use the latest patch release for the specific minor version
11+
- `@v1.33.0` to use an exact release
12+
- `@v1.33` to use the latest patch release for the specific minor version
1313
- `@v1` to use the latest patch release for the specific major version
1414

15+
## [1.33.0] - 2023-02-28
16+
17+
### Added
18+
- The [dflook/terraform-plan](https://github.com/dflook/terraform-github-actions/tree/main/terraform-plan) and [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/tree/main/terraform-apply) actions now have a `destroy` input.
19+
When set to `true` terraform will run in destroy mode, planning the destruction of all resources.
20+
This allows reviewing the effect of a destroy before applying it.
21+
22+
The [dflook/terraform-destroy](https://github.com/dflook/terraform-github-actions/tree/main/terraform-destroy) action is unchanged and will still immediately destroy all resources.
23+
1524
## [1.32.1] - 2023-02-02
1625

1726
### Fixed
@@ -485,6 +494,7 @@ First release of the GitHub Actions:
485494
- [dflook/terraform-new-workspace](terraform-new-workspace)
486495
- [dflook/terraform-destroy-workspace](terraform-destroy-workspace)
487496

497+
[1.33.0]: https://github.com/dflook/terraform-github-actions/compare/v1.32.1...v1.33.0
488498
[1.32.1]: https://github.com/dflook/terraform-github-actions/compare/v1.32.0...v1.32.1
489499
[1.32.0]: https://github.com/dflook/terraform-github-actions/compare/v1.31.1...v1.32.0
490500
[1.31.1]: https://github.com/dflook/terraform-github-actions/compare/v1.31.0...v1.31.1

terraform-apply/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ These input values must be the same as any `terraform-plan` for the same configu
156156

157157
Set to `true` to destroy all resources.
158158

159+
This generates and applies a plan in [destroy mode](https://developer.hashicorp.com/terraform/cli/commands/plan#planning-modes).
160+
This is only available in Terraform v0.15.2 and later.
161+
159162
- Type: boolean
160163
- Optional
161164
- Default: false

terraform-apply/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ inputs:
5252
required: false
5353
default: ""
5454
destroy:
55-
description: Create a plan to destroy all resources
55+
description: Create and apply a plan to destroy all resources
5656
required: false
5757
default: "false"
5858

terraform-destroy/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
This is one of a suite of terraform related actions - find them at [dflook/terraform-github-actions](https://github.com/dflook/terraform-github-actions).
44

5-
This action uses the `terraform destroy` command to destroy all resources in a terraform workspace.
5+
:warning: This action uses the `terraform destroy` command to immediately destroy all resources in a terraform workspace.
66

7+
To generate a plan that can be reviewed you can instead use the [dflook/terraform-plan](https://github.com/dflook/terraform-github-actions/tree/main/terraform-plan)
8+
and [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/tree/main/terraform-plan) actions with the `destroy` input set to `true`.
79

810
## Inputs
911

terraform-plan/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/
138138

139139
Set to `true` to generate a plan to destroy all resources.
140140

141+
This generates a plan in [destroy mode](https://developer.hashicorp.com/terraform/cli/commands/plan#planning-modes).
142+
141143
- Type: boolean
142144
- Optional
143145
- Default: false

0 commit comments

Comments
 (0)