-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules README.md is always overwritten #1582
Comments
also i think you need to add |
Thank you for your feedback. |
Yeah, that's right. Thank you for pointing it out. |
yes but we can use headers and footers to add more general information to the README which will give more flexibilty to the user github-comment exec \
-config "${GITHUB_ACTION_PATH}/github-comment.yaml" \
-var "tfaction_target:${TFACTION_TARGET}" \
-- terraform-docs --output-file README.md . which will give us the same results without overwritting the README |
|
📝 https://github.com/terraform-docs/terraform-docs/releases/tag/v0.12.0 The release date is |
Now test-module runs tfaction/test-module/action.yaml Line 63 in 8e6060b
terraform-docs . > README.md If output:
file: README.md
mode: inject $ terraform-docs . > README.md
$ cat README.md
Error: file content is empty On the other hand, $ terraform-docs --output-file README.md . But if the comment $ terraform-docs --output-file README.md .
Error: begin comment is missing So this is a breaking change. We can check if the comment exists, and if they don't exist we can run |
|
v1.2.3 is out 🎉 |
tfaction version
1.2.1
Overview
when generating the terraform docs in module test READMe.md is always overwritten
How to reproduce
tfaction-root.yaml
tfaction.yaml
GitHub Actions Workflow
Other related code such as local Registry
GitHub Actions' log
Expected behaviour
inject terraform docs to README.md without overwriting the content
Actual behaviour
overwrites entire README.md
Important Factoids
No response
Note
we can do the following to inject docs anywhere in the README.md the user wants. this will give the user a choice where to add docs.
.terraform-docs.yml
README.md
and remove the redirection to the README.md from the step
The text was updated successfully, but these errors were encountered: