hashicorp / tfc-workflows-github

HCP Terraform starter workflows and github actions to automate Terraform Cloud CI/CD pipelines.
Mozilla Public License 2.0
124 stars 20 forks source link

Workflow for updating Terraform required_version? #41

Open dkirrane opened 3 months ago

dkirrane commented 3 months ago

Would it make sense to have an option in the create-run action to use the version set in the Terraform config i.e. required_version?

terraform {
  required_version = "1.6.5"
}

Currently, when I update required_version in a pull request the Speculative Plan fails because of the workspace is currently using Terraform 1.3.6: image


From Terraform Cloud I can retry the run but the Pull Request workflow run will still be marked as failed.

image