A GitHub Action to send a report to your issues or PRs
MIT License
Run a command line asking to this Action to post the results in a comment.
- name: Execute the command
id: journalist
uses: Eomm/action-journalist@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
keywords: '["#journalist say hi"]'
command: echo 'hello world'
You need only to create a step with these parameters:
github-token
: the GH token to post the output of the command in the issue or prkeywords
: run the command only if the body message contains one of these keywords. The input must be a stringified array.command
: the command line to executeIf the command run, this action will set the output:
stdout
: the string output of the std output of the command executionstderr
: the string output of the std error of the command executionTo use them you need to referece them like this: steps.<step id>.outputs.stdout
Run the application's benchmark simply posting a comment on a Pull Request.
name: run benchmark
on:
issue_comment:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install the application
run: npm install
- name: Execute the command
uses: Eomm/action-journalist@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
keywords: '["#journalist run benchmark"]'
command: npm run benchmark
Licensed under MIT.