terraform-docs / gh-actions

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

Uncommitted change(s) error with 1.3.0 #145

Open saliceti opened 2 hours ago

saliceti commented 2 hours 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 hours 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?