Skip to content

Commit

Permalink
🔖 v1.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Feb 28, 2023
1 parent ddba511 commit 632d299
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@ The actions are versioned as a suite. Some actions may have no change in behavio

When using an action you can specify the version as:

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

## [1.33.0] - 2023-02-28

### Added
- 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.
When set to `true` terraform will run in destroy mode, planning the destruction of all resources.
This allows reviewing the effect of a destroy before applying it.

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.

## [1.32.1] - 2023-02-02

### Fixed
Expand Down Expand Up @@ -485,6 +494,7 @@ First release of the GitHub Actions:
- [dflook/terraform-new-workspace](terraform-new-workspace)
- [dflook/terraform-destroy-workspace](terraform-destroy-workspace)

[1.33.0]: https://github.com/dflook/terraform-github-actions/compare/v1.32.1...v1.33.0
[1.32.1]: https://github.com/dflook/terraform-github-actions/compare/v1.32.0...v1.32.1
[1.32.0]: https://github.com/dflook/terraform-github-actions/compare/v1.31.1...v1.32.0
[1.31.1]: https://github.com/dflook/terraform-github-actions/compare/v1.31.0...v1.31.1
Expand Down
3 changes: 3 additions & 0 deletions terraform-apply/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ These input values must be the same as any `terraform-plan` for the same configu

Set to `true` to destroy all resources.

This generates and applies a plan in [destroy mode](https://developer.hashicorp.com/terraform/cli/commands/plan#planning-modes).
This is only available in Terraform v0.15.2 and later.

- Type: boolean
- Optional
- Default: false
Expand Down
2 changes: 1 addition & 1 deletion terraform-apply/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ inputs:
required: false
default: ""
destroy:
description: Create a plan to destroy all resources
description: Create and apply a plan to destroy all resources
required: false
default: "false"

Expand Down
4 changes: 3 additions & 1 deletion terraform-destroy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

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

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

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)
and [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/tree/main/terraform-plan) actions with the `destroy` input set to `true`.

## Inputs

Expand Down
2 changes: 2 additions & 0 deletions terraform-plan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/

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

This generates a plan in [destroy mode](https://developer.hashicorp.com/terraform/cli/commands/plan#planning-modes).

- Type: boolean
- Optional
- Default: false
Expand Down

0 comments on commit 632d299

Please sign in to comment.