Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs-gen/actions/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs-gen/actions/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
Expand Down
2 changes: 2 additions & 0 deletions tofu-apply/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions tofu-apply/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions tofu-refresh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions tofu-refresh/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading