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
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ 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.49.0` to use an exact release
- `@v1.49` to use the latest patch release for the specific minor version
- `@v1` to use the latest patch release for the specific major version
- `@v2.0.0` to use an exact release
- `@v2.0` to use the latest patch release for the specific minor version
- `@v2` to use the latest patch release for the specific major version

## [2.0.0] - 2025-05-31

### Changed
- The container image has been updated from debian 11 to debian 12. This may affect you if you rely on the runtime environment of Terraform/OpenTofu.

### Removed
- The deprecated `var` input has been removed. This was deprecated in v1.9.0 from 2021-04-10 when it was replaced by the introduction of the `variables` input.

## [1.49.0] - 2025-05-29

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

[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
[1.48.0]: https://github.com/dflook/terraform-github-actions/compare/v1.47.0...v1.48.0
[1.47.0]: https://github.com/dflook/terraform-github-actions/compare/v1.46.1...v1.47.0
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
uses: actions/checkout@v4

- name: terraform plan
uses: dflook/terraform-plan@v1
uses: dflook/terraform-plan@v2
with:
path: my-terraform-config
```
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
uses: actions/checkout@v4

- name: terraform apply
uses: dflook/terraform-apply@v1
uses: dflook/terraform-apply@v2
with:
path: my-terraform-config
```
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
uses: actions/checkout@v4

- name: terraform validate
uses: dflook/terraform-validate@v1
uses: dflook/terraform-validate@v2
with:
path: my-terraform-config

Expand All @@ -153,7 +153,7 @@ jobs:
uses: actions/checkout@v4

- name: terraform fmt
uses: dflook/terraform-fmt-check@v1
uses: dflook/terraform-fmt-check@v2
with:
path: my-terraform-config
```
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
uses: actions/checkout@v4

- name: Check for drift
uses: dflook/terraform-check@v1
uses: dflook/terraform-check@v2
with:
path: my-terraform-config
```
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
uses: actions/checkout@v4

- name: Rotate certs
uses: dflook/terraform-apply@v1
uses: dflook/terraform-apply@v2
with:
path: my-terraform-config
auto_approve: true
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
uses: actions/checkout@v4

- name: terraform fmt
uses: dflook/terraform-fmt@v1
uses: dflook/terraform-fmt@v2
with:
path: my-terraform-config

Expand Down Expand Up @@ -285,13 +285,13 @@ jobs:
uses: actions/checkout@v4

- name: Use branch workspace
uses: dflook/terraform-new-workspace@v1
uses: dflook/terraform-new-workspace@v2
with:
path: my-terraform-config
workspace: ${{ github.head_ref }}

- name: Deploy test infrastrucutre
uses: dflook/terraform-apply@v1
uses: dflook/terraform-apply@v2
id: test-infra
with:
path: my-terraform-config
Expand Down Expand Up @@ -323,7 +323,7 @@ jobs:
uses: actions/checkout@v4

- name: terraform destroy
uses: dflook/terraform-destroy-workspace@v1
uses: dflook/terraform-destroy-workspace@v2
with:
path: my-terraform-config
workspace: ${{ github.head_ref }}
Expand Down
14 changes: 7 additions & 7 deletions docs-gen/actions/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
ref: refs/pull/${{ github.event.issue.number }}/merge

- name: $ToolName apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
with:
path: my-$ToolName-config
```
Expand Down Expand Up @@ -208,7 +208,7 @@
uses: actions/checkout@v4

- name: $ToolName apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
with:
path: my-$ToolName-config
```
Expand All @@ -235,7 +235,7 @@
uses: actions/checkout@v4

- name: $ToolName apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
with:
path: my-$ToolName-config
auto_approve: true
Expand All @@ -262,7 +262,7 @@
uses: actions/checkout@v4

- name: $ToolName apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
with:
path: my-$ToolName-config
auto_approve: true
Expand Down Expand Up @@ -297,7 +297,7 @@
ref: refs/pull/${{ github.event.issue.number }}/merge

- name: $ProductName apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
with:
path: my-$ToolName-config
```
Expand Down Expand Up @@ -327,14 +327,14 @@
uses: actions/checkout@v4

- name: $ToolName apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
continue-on-error: true
id: first_try
with:
path: $ToolName

- name: Retry failed apply
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
if: ${{ steps.first_try.outputs.failure-reason == 'apply-failed' }}
with:
path: $ToolName
Expand Down
6 changes: 3 additions & 3 deletions docs-gen/actions/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
uses: actions/checkout@v4
- name: Check
uses: dflook/$ToolName-check@v1
uses: dflook/$ToolName-check@v2
with:
path: my-$ToolName-configuration
```
Expand All @@ -93,7 +93,7 @@
uses: actions/checkout@v4
- name: Check
uses: dflook/$ToolName-check@v1
uses: dflook/$ToolName-check@v2
id: check
with:
path: my-$ToolName-configuration
Expand All @@ -103,4 +103,4 @@
run: echo "There are outstanding changes to apply"
```
'''
)
)
8 changes: 4 additions & 4 deletions docs-gen/actions/destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
uses: actions/checkout@v4
- name: $ToolName destroy
uses: dflook/$ToolName-destroy@v1
uses: dflook/$ToolName-destroy@v2
with:
path: my-$ToolName-config
workspace: ${{ github.head_ref }}
Expand All @@ -100,19 +100,19 @@
uses: actions/checkout@v4
- name: $ToolName destroy
uses: dflook/$ToolName-destroy@v1
uses: dflook/$ToolName-destroy@v2
id: first_try
continue-on-error: true
with:
path: my-$ToolName-config
workspace: ${{ github.head_ref }}
- name: Retry failed destroy
uses: dflook/$ToolName-destroy@v1
uses: dflook/$ToolName-destroy@v2
if: ${{ steps.first_try.outputs.failure-reason == 'destroy-failed' }}
with:
path: my-$ToolName-config
workspace: ${{ github.head_ref }}
```
'''
)
)
6 changes: 3 additions & 3 deletions docs-gen/actions/destroy_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
uses: actions/checkout@v4
- name: $ToolName destroy
uses: dflook/$ToolName-destroy-workspace@v1
uses: dflook/$ToolName-destroy-workspace@v2
with:
path: $ToolName
workspace: ${{ github.head_ref }}
Expand All @@ -99,15 +99,15 @@
uses: actions/checkout@v4
- name: $ToolName destroy
uses: dflook/$ToolName-destroy-workspace@v1
uses: dflook/$ToolName-destroy-workspace@v2
id: first_try
continue-on-error: true
with:
path: my-$ToolName-config
workspace: ${{ github.head_ref }}
- name: Retry failed destroy
uses: dflook/$ToolName-destroy-workspace@v1
uses: dflook/$ToolName-destroy-workspace@v2
if: ${{ steps.first_try.outputs.failure-reason == 'destroy-failed' }}
with:
path: my-$ToolName-config
Expand Down
2 changes: 1 addition & 1 deletion docs-gen/actions/fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
uses: actions/checkout@v4

- name: $ToolName fmt
uses: dflook/$ToolName-fmt@v1
uses: dflook/$ToolName-fmt@v2
with:
path: my-$ToolName-config

Expand Down
4 changes: 2 additions & 2 deletions docs-gen/actions/fmt_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
uses: actions/checkout@v4
- name: $ToolName fmt
uses: dflook/$ToolName-fmt-check@v1
uses: dflook/$ToolName-fmt-check@v2
with:
path: my-$ToolName-config
```
Expand All @@ -93,7 +93,7 @@
uses: actions/checkout@v4
- name: $ToolName fmt
uses: dflook/$ToolName-fmt-check@v1
uses: dflook/$ToolName-fmt-check@v2
id: fmt-check
with:
path: my-$ToolName-config
Expand Down
4 changes: 2 additions & 2 deletions docs-gen/actions/new_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
uses: actions/checkout@v4
- name: Use branch workspace
uses: dflook/$ToolName-new-workspace@v1
uses: dflook/$ToolName-new-workspace@v2
with:
path: $ToolName
workspace: ${{ github.head_ref }}
- name: Deploy test infrastrucutre
uses: dflook/$ToolName-apply@v1
uses: dflook/$ToolName-apply@v2
with:
path: $ToolName
workspace: ${{ github.head_ref }}
Expand Down
4 changes: 2 additions & 2 deletions docs-gen/actions/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
uses: actions/checkout@v4
- name: Get outputs
uses: dflook/$ToolName-output@v1
uses: dflook/$ToolName-output@v2
id: tf-outputs
with:
path: my-$ToolName-config
Expand Down Expand Up @@ -96,7 +96,7 @@
uses: actions/checkout@v4
- name: Get outputs
uses: dflook/$ToolName-output@v1
uses: dflook/$ToolName-output@v2
id: tf-outputs
with:
path: my-$ToolName-config
Expand Down
8 changes: 4 additions & 4 deletions docs-gen/actions/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
ref: refs/pull/${{ github.event.issue.number }}/merge

- name: $ToolName apply
uses: dflook/$ToolName-plan@v1
uses: dflook/$ToolName-plan@v2
with:
path: my-$ToolName-config
```
Expand Down Expand Up @@ -170,7 +170,7 @@
uses: actions/checkout@v4

- name: $ToolName plan
uses: dflook/$ToolName-plan@v1
uses: dflook/$ToolName-plan@v2
with:
path: my-$ToolName-config
```
Expand Down Expand Up @@ -207,7 +207,7 @@
uses: actions/checkout@v4

- name: $ToolName plan
uses: dflook/$ToolName-plan@v1
uses: dflook/$ToolName-plan@v2
with:
path: my-$ToolName-config
label: production
Expand Down Expand Up @@ -248,7 +248,7 @@
ref: refs/pull/${{ github.event.issue.number }}/merge

- name: $ToolName plan
uses: dflook/$ToolName-plan@v1
uses: dflook/$ToolName-plan@v2
with:
path: my-$ToolName-config
```
Expand Down
4 changes: 2 additions & 2 deletions docs-gen/actions/remote_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
name: Run Test
steps:
- name: Get remote state
uses: dflook/$ToolName-remote-state@v1
uses: dflook/$ToolName-remote-state@v2
id: remote-state
with:
backend_type: s3
Expand All @@ -66,4 +66,4 @@
curl "${{ steps.remote-state.outputs.url }}"
```
'''
)
)
4 changes: 2 additions & 2 deletions docs-gen/actions/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
uses: actions/checkout@v4
- name: $ProductName Tests
uses: dflook/$ToolName-test@v1
uses: dflook/$ToolName-test@v2
with:
path: modules/vpc
```
'''
)
)
Loading
Loading