Skip to content

A GitHub Action to send a report to your issues or PRs

License

Notifications You must be signed in to change notification settings

Eomm/action-journalist

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action Journalist

test-local

Run a command line asking to this Action to post the results in a comment.

Usage

- 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'

Input

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 pr
  • keywords: 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 execute

Output

If the command run, this action will set the output:

  • stdout: the string output of the std output of the command execution
  • stderr: the string output of the std error of the command execution

To use them you need to referece them like this: steps.<step id>.outputs.stdout

Examples

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

License

Licensed under MIT.

About

A GitHub Action to send a report to your issues or PRs

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published