From cd2bfa848f06aa16c8f2df71ece806153aaf3476 Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Mon, 16 Jun 2025 14:58:17 +0100 Subject: [PATCH] :bookmark: v2.1.0 --- CHANGELOG.md | 23 +++++++++++++++++++++-- docs-gen/actions/apply.py | 2 ++ docs-gen/actions/refresh.py | 2 ++ tofu-apply/README.md | 2 ++ tofu-apply/action.yaml | 2 ++ tofu-refresh/README.md | 2 ++ tofu-refresh/action.yaml | 2 ++ 7 files changed, 33 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94026d60..c2d09180 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,10 +11,28 @@ 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: -- `@v2.0.1` to use an exact release -- `@v2.0` to use the latest patch release for the specific minor version +- `@v2.1.0` to use an exact release +- `@v2.1` to use the latest patch release for the specific minor version - `@v2` to use the latest patch release for the specific major version +## [2.1.0] - 2025-06-16 + +### Added +- New `exclude` input for [dflook/tofu-plan](https://github.com/dflook/terraform-github-actions/tree/main/tofu-plan), + [dflook/tofu-apply](https://github.com/dflook/terraform-github-actions/tree/main/tofu-apply), and + [dflook/tofu-refresh](https://github.com/dflook/terraform-github-actions/tree/main/tofu-refresh) actions. + + The `exclude` input allows specifying resources to exclude from operations, one per line. The operation will include all resources except the specified ones and their dependencies. + + ```yaml + with: + exclude: | + local_file.sensitive_config + aws_instance.temp_resource + ``` + + Requires OpenTofu 1.9+. + ## [2.0.1] - 2025-06-03 ### Fixed @@ -754,6 +772,7 @@ First release of the GitHub Actions: - [dflook/terraform-new-workspace](terraform-new-workspace) - [dflook/terraform-destroy-workspace](terraform-destroy-workspace) +[2.1.0]: https://github.com/dflook/terraform-github-actions/compare/v2.0.1...v2.1.0 [2.0.1]: https://github.com/dflook/terraform-github-actions/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/dflook/terraform-github-actions/compare/v1.49.0...v2.0.0 [1.49.0]: https://github.com/dflook/terraform-github-actions/compare/v1.48.0...v1.49.0 diff --git a/docs-gen/actions/apply.py b/docs-gen/actions/apply.py index 99de6829..5f522911 100644 --- a/docs-gen/actions/apply.py +++ b/docs-gen/actions/apply.py @@ -84,6 +84,8 @@ dataclasses.replace(exclude, description=''' List of resources to exclude from the apply operation, one per line. The apply operation will include all resources except the specified ones and their dependencies. + + Requires OpenTofu 1.9+. '''), dataclasses.replace(destroy, description=''' Set to `true` to destroy all resources. diff --git a/docs-gen/actions/refresh.py b/docs-gen/actions/refresh.py index 94c1d026..47504253 100644 --- a/docs-gen/actions/refresh.py +++ b/docs-gen/actions/refresh.py @@ -40,6 +40,8 @@ dataclasses.replace(exclude, description=''' List of resources to exclude from the refresh operation, one per line. The refresh will include all resources except the specified ones and their dependencies. + +Requires OpenTofu 1.9+. '''), parallelism ], diff --git a/tofu-apply/README.md b/tofu-apply/README.md index 935e09b5..d6a601c8 100644 --- a/tofu-apply/README.md +++ b/tofu-apply/README.md @@ -153,6 +153,8 @@ These input values must be the same as any [`dflook/tofu-plan`](https://github.c List of resources to exclude from the apply operation, one per line. The apply operation will include all resources except the specified ones and their dependencies. + Requires OpenTofu 1.9+. + ```yaml with: exclude: | diff --git a/tofu-apply/action.yaml b/tofu-apply/action.yaml index 7973f95b..e1fd3e51 100644 --- a/tofu-apply/action.yaml +++ b/tofu-apply/action.yaml @@ -54,6 +54,8 @@ inputs: description: | List of resources to exclude from the apply operation, one per line. The apply operation will include all resources except the specified ones and their dependencies. + + Requires OpenTofu 1.9+. required: false default: "" destroy: diff --git a/tofu-refresh/README.md b/tofu-refresh/README.md index 07e39ea9..8827132b 100644 --- a/tofu-refresh/README.md +++ b/tofu-refresh/README.md @@ -102,6 +102,8 @@ This will synchronise the OpenTofu state with the actual resources, but will not List of resources to exclude from the refresh operation, one per line. The refresh will include all resources except the specified ones and their dependencies. + Requires OpenTofu 1.9+. + ```yaml with: exclude: | diff --git a/tofu-refresh/action.yaml b/tofu-refresh/action.yaml index ad03455c..b748a37c 100644 --- a/tofu-refresh/action.yaml +++ b/tofu-refresh/action.yaml @@ -42,6 +42,8 @@ inputs: description: | List of resources to exclude from the refresh operation, one per line. The refresh will include all resources except the specified ones and their dependencies. + + Requires OpenTofu 1.9+. required: false default: "" parallelism: