Skip to content

Releases: OP5dev/TF-via-PR

v11 Pass Command Arguments with more PR Automation

13 Sep 14:17
cc83c7b
Compare
Choose a tag to compare

Highlights

  • Input individual command arguments instead of a string.
  • Expand support for PR automation event triggers.

Added

  • Separate input parameters for each command argument passed into TF.
  • Leverage github-script instead of bash for handling workflow logic and GitHub API.
  • Support for tenv to avoid TF wrapper script.

Updated

Changed

  • Refactor input parameter names:

    Before After Default
    command_input args_*
    cli_uses tf_tool terraform
    label_enable label_pr true
    plan_outline outline_enable true
    recreate_comment update_comment false
  • Refactor output parameter names:

    Before After
    command header
    comment_summary summary
    plan_id identifier
    tf_fmt fmt_result
    tf_output last_result

Removed

  • Support for issue_comment event trigger in order to focus on PR automation events.

Fixed

Secured

  • Support for v11.0.0 and above.

Todo

  • Add workflow example for interactive PR label trigger.
  • Add support for terragrunt thin wrapper, per #258.

Commits changelog: v10.7.0...v11.0.0

v11.4.5

10 Oct 17:50
1b1050c
Compare
Choose a tag to compare

Fixed

  • Interpolation of auto-approve argument (thank you, @chris3ware).

Commits changelog: v11.4.4...v11.4.5

v11.4.4

01 Oct 13:11
379cb0f
Compare
Choose a tag to compare

Fixed

  • Correctly parse and retrieve tenv versions beyond the latest one (thank you, @ego93!).
  • New tenv_arch input parameter to select a tenv's architecture in place of the default "amd64".

Commits changelog: v11.4.3...v11.4.4

v11.4.3

13 Sep 14:07
6cb2fda
Compare
Choose a tag to compare

Fixed

  • CI workflow to update major release tag (for real, this time).

Commits changelog: v11.4.2...v11.4.3

v11.4.2

13 Sep 13:59
f65ec42
Compare
Choose a tag to compare

Fixed

  • CI workflow to update major release tag.

Removed

  • GitHub Codespaces support.

Commits changelog: v11.4.1...v11.4.2

v11.4.1

12 Sep 17:22
86ff2b5
Compare
Choose a tag to compare

Fixed

  • Remove unnecessary arguments from apply command.

Commits changelog: v11.3.0...v11.4.1

v11.4.0

12 Sep 17:13
47dd002
Compare
Choose a tag to compare

Added

  • The new exitcode output parameter will return 0 (succeeded) or 1 (failed) by default. By passing in arg_detailed_exitcode: true, then exitcode will return one of the documented exit codes:
    • 0 = Succeeded with empty diff (no changes)
    • 1 = Error
    • 2 = Succeeded with non-empty diff (changes present)
  • The init command now consumes -var-file and -var inputs to complement OpenTofu's early (static) evaluation implementation.

Commits changelog: v11.3.0...v11.4.0

v11.3.0

09 Sep 08:41
d930aca
Compare
Choose a tag to compare

Added

Optionally pin the version of tenv tool used by TF-via-PR with the new tenv_version input parameter.

If tf_version input is being used and the following error is observed:

Failed to detect a version allowing to call terraform : <nil>: Failed to read file; The configuration file "main.tf" could not be read.

There are a few different methods of resolution:

  • Pass tenv_version: 3.1.0 input to revert to previous behaviour.
  • Set TFENV_TERRAFORM_VERSION or TOFUENV_TERRAFORM_VERSION environment variables, per tenv.
  • Use setup-opentofu (example) or setup-terraform (example) with the default wrapper enabled.

Commits changelog: v11.2.0...v11.3.0

v11.2.0

26 Aug 12:47
31f7cab
Compare
Choose a tag to compare

Added

Optionally compare the existing TF plan file with a newly-generated one, in order to prevent stale apply using the new plan_parity input parameter. Comparison is conducted via normalized string comparison of the plan outlines. If the outlines are identical, the old TF plan file is replaced by the new one before apply, otherwise proceeding as usual.

This is useful in a merge_group-triggered workflow to prevent stale apply, where prior merges may have invalidated the existing TF plan file despite no changes to the plan proposal.

Commits changelog: v11.1.0...v11.2.0

v11.0.2

09 Aug 17:40
8888e3c
Compare
Choose a tag to compare

Updated

  • Bump actions/upload-artifact to v4.3.6.

Changed

  • Replace - separator with . in TF identifier to avoid naming ambiguity (thank you, @p4perf4ce).

Fixed

  • Handle default pr_number for all cases beyond supported event triggers (thank you, @p4perf4ce).

New Contributors

Commits changelog: v11.0.1...v11.0.2