You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the following is not working with the github action for terraform-docs. I have the following directory structure, terraform files in a subdirectory and the readme.md to update in the root folder:
When setting the working-directory to infrastructure and the output file to ../readme the changes will be made but not committed during the execution of the action. Output from the log looks like this:
::debug working_dir=infrastructure
::debug output_mode=inject
::debug output_file=../readme.md
::debug terraform-docs markdown table --hide data-sources --hide footer --hide header --hide inputs --hide outputs --hide providers --hide requirements --hide resources --indent 2 --output-mode inject --output-file ../readme.md --output-template <!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS --> infrastructure
readme.md updated successfully
::debug No change in infrastructure/ detected
::debug Following files will be committed
M readme.md
On branch fix-tf-docs-section
Your branch is up to date with 'origin/fix-tf-docs-section'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: readme.md
no changes added to commit (use "git add" and/or "git commit -a")
Technically it should work, but I feel that there is an error in the logic which files should be added to the commit.
How can we reproduce it?
Use a git repository with the terraform file in a subfolder of the root folder. Writing the terraform-docs changes into a file readme.md in the root directory via the github action. See folder structure above.
Environment information
Terraform-docs github action v1.0.0
The text was updated successfully, but these errors were encountered:
I have encountered similar issue. The difference is I configured find-dir to specify sub dir that I want it generate README.me, but it always modify README.md in root dir regardless. When there are new README generated for sub dir it works; when only README in root get modified, the above issue show up
Describe the bug
It seems that the following is not working with the github action for terraform-docs. I have the following directory structure, terraform files in a subdirectory and the
readme.md
to update in the root folder:When setting the working-directory to
infrastructure
and the output file to../readme
the changes will be made but not committed during the execution of the action. Output from the log looks like this:Technically it should work, but I feel that there is an error in the logic which files should be added to the commit.
How can we reproduce it?
Use a git repository with the terraform file in a subfolder of the root folder. Writing the terraform-docs changes into a file
readme.md
in the root directory via the github action. See folder structure above.Environment information
Terraform-docs github action v1.0.0
The text was updated successfully, but these errors were encountered: