Closed tobiasehlert closed 2 years ago
Found the reason for the output to be different from each other..
The lock files are not checked in the repository, which is the reason for the GitHub Action step to not be able to find the correct version as specified in the lock file.
Describe the bug
I have noticed a difference when it comes to the README output when using the GitHub Action terraform-docs/gh-actions app and by running the same command in the cli on my computer.
Terraform version provider information:
Terraform lock file information:
The output that is different from each other is in the Provider markdown section.
Output when running in GitHub Action step:
Output when running in cli:
How can we reproduce it?
Step in GitHub Action workflow:
cli command to run similar to workflow:
Environment information
terraform-docs in GitHub Action:
terraform-docs in cli: