Pull Requests | Issues | v6.2.1...v6.3.0
Features
#1566 exec: Add the option -out
to output the result to text files
https://suzuki-shunsuke.github.io/github-comment/output-file
Instead of posting a comment to a GitHub Issue or Pull Request, you can output the result to a text file using github-comment exec
's -out
option.
This is useful to output the result of GitHub Actions workflow_dispatch
or schedule
events to $GITHUB_STEP_SUMMARY.
e.g.
github-comment exec -out "file:$GITHUB_STEP_SUMMARY" -- npm test
You can post both GitHub and a file.
e.g.
github-comment exec -out github -out "file:$GITHUB_STEP_SUMMARY" -- npm test
The value of -out
must be either github
or file:<file path>
.
If a given file doesn't exist, the file is created.
Otherwise, the content is appended.