Comment the result of any command on the pull request.
Create .github/workflows/<workflow name>.yml
.
name: Comment jest coverage
on:
- pull_request
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn --frozen-lockfile
- uses: nzws/pr-msg-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: 'yarn jest --coverage'
Inputs:
token
: GitHub's token (Use${{ secrets.GITHUB_TOKEN }}
)command
: Command to be executed.
- code: MIT