Comments (10)
also i think you need to add pull_request_targe
here
from tfaction.
Thank you for your feedback.
I didn't know the output config.
But I think you can use header-from and footer-from instead of inject mode.
from tfaction.
also i think you need to add
pull_request_targe
here
Yeah, that's right. Thank you for pointing it out.
from tfaction.
Thank you for your feedback. I didn't know the output config. But I think you can use header-from and footer-from instead of inject mode.
yes but we can use headers and footers to add more general information to the README which will give more flexibilty to the user
we can also do
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
--output-file README.md
override the output.file option in .terraform-docs.yml
and default output mode is inject
from tfaction.
also i think you need to add
pull_request_targe
here
from tfaction.
📝 --output-file
was added at terraform-docs v0.12.0.
https://github.com/terraform-docs/terraform-docs/releases/tag/v0.12.0
The release date is Mar 23, 2021
, so there is no problem.
from tfaction.
Now test-module runs terraform-docs
as the following.
tfaction/test-module/action.yaml
Line 63 in 8e6060b
terraform-docs . > README.md
If output
is set as the following, README.md becomes empty.
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 .
works well.
$ terraform-docs --output-file README.md .
But if the comment <!-- BEGIN_TF_DOCS -->
isn't set, the command fails.
$ 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 terraform-docs . > README.md
without --output-file
option.
This keeps the compatibility, but I'm not sure if it's good.
from tfaction.
- Check .terraform-docs.yml if
output.file
is set - If
output.file
is set, tfaction runsterraform-docs .
- Otherwise tfaction runs
terraform-docs . > README
(Redirect the stdout to README.md)
from tfaction.
from tfaction.
v1.2.3 is out 🎉
https://github.com/suzuki-shunsuke/tfaction/releases/tag/v1.2.3
from tfaction.
Related Issues (20)
- Output the good error message if plan_workflow_name is wrong
- test module fails when using modules inside modules HOT 5
- Support GitHub Enterprise Server
- `terraform init` for apply pipeline fails when using modules inside same repo HOT 4
- Consider migration from Jest to Vitest HOT 2
- An error occured `workflow run's headSha () is different from the associated pull request's head sha` HOT 3
- Enable passing the access_token_scopes configuration to google-github-actions/auth on tfaction-root
- Support enabling or disabling linters by target group or working directory
- optional varibles to specify credentials for backend bucket HOT 4
- when trivy output is too long test-modules and plan jobs fail HOT 2
- The secrets configured in tfaction.yaml are not being set as environment variables by export-secrets. HOT 2
- Extra whitespace detected at the end of targets in list-target job HOT 2
- Request for support to create follow-up PRs for drift detection
- Allow `runs_on` to be configured in tfaction.yaml
- Using Taskfile as terraform Wrapper with tfaction GitHub Actions HOT 5
- Run tfaction if file outside of working directory changes HOT 1
- Use array of tags to select specific self hosted github runners as "runs-on"
- Support testing plan files with lintnet
- Support running Conftest before running `terraform plan`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfaction.