Git Product home page Git Product logo

action-journalist's Introduction

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.

action-journalist's People

Contributors

dependabot[bot] avatar eomm avatar optic-release-automation[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

action-journalist's Issues

[Security] Workflow test.yml is using vulnerable action actions/checkout

The workflow test.yml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.