Output the result to a text 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>.