terraform-docs / gh-actions

A Github action for generating Terraform module documentation using terraform-docs and gomplate
Apache License 2.0
156 stars 62 forks source link

Uncommitted change(s) error with 1.3.0 #145

Closed saliceti closed 2 months ago

saliceti commented 2 months ago

Describe the bug

The new 1.3.0 version fails with error "Error: Uncommitted change(s) has been found!". The same code works fine on 1.2.2.

See runs:

How can we reproduce it?

Repository: https://github.com/DFE-Digital/terraform-modules/ Fork and update the action to v1.3.0. Raising a PR will run the action. Like: https://github.com/DFE-Digital/terraform-modules/actions/runs/10958001381/job/30427315881

Environment information

pascal-hofmann commented 2 months ago

This sounds like the generated code between terraform-docs 1.2.2 and 1.3.0 has changed, and you need to update the generated files in your repo. Did you try that?

saliceti commented 2 months ago

That was it thanks @pascal-hofmann . Looks like a subtle change from <br> to <br/>!