diff --git a/CHANGELOG.md b/CHANGELOG.md index ca5cc709..94026d60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,10 +11,15 @@ 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.0` to use an exact release +- `@v2.0.1` 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.1] - 2025-06-03 + +### Fixed +- There was a regression in v2.0.0 that caused JSON var_files to not be loaded correctly, which would cause jobs to fail. This has been fixed. + ## [2.0.0] - 2025-05-31 ### Changed @@ -749,6 +754,7 @@ First release of the GitHub Actions: - [dflook/terraform-new-workspace](terraform-new-workspace) - [dflook/terraform-destroy-workspace](terraform-destroy-workspace) +[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 [1.48.0]: https://github.com/dflook/terraform-github-actions/compare/v1.47.0...v1.48.0 diff --git a/image/actions.sh b/image/actions.sh index b47b6482..7d9833da 100644 --- a/image/actions.sh +++ b/image/actions.sh @@ -416,12 +416,13 @@ function create-auto-tfvars() { if [[ -n "${INPUT_VARIABLES:-}" ]]; then debug_log "Creating autoloading tfvars file for the variables input: zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" echo "$INPUT_VARIABLES" >"$STEP_TMP_DIR/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" - ln -s "$STEP_TMP_DIR/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" "$INPUT_PATH/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" + cp "$STEP_TMP_DIR/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" "$INPUT_PATH/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" fi } function delete-auto-tfvars() { debug_cmd find "$INPUT_PATH" -regex '.*/zzzz-dflook-terraform-github-actions-[0-9]+.*\.auto\.tfvars' -print -delete || true + debug_cmd find "$INPUT_PATH" -regex '.*/zzzz-dflook-terraform-github-actions-[0-9]+.*\.auto\.tfvars\.json' -print -delete || true } function output() {