Open IanButterworth opened 4 years ago
A workaround is to use github.event.comment.body
on:
pull_request:
types: [opened]
issue_comment:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: khan/pull-request-comment-trigger@master
id: check
with:
trigger: 'RunTest'
prefix_only: 'true'
reaction: rocket
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- run: echo '${{ github.event.comment.body }}'
if: steps.check.outputs.triggered == 'true'
yeah this repository is not compiled, need to run npm run-script dist
or use https://github.com/peter-evans/slash-command-dispatch this is more powerful
@IanButterworth That worked for me, thank you so much!
Both github.event.comment.body and steps.check.outputs.comment_body do not work for me. Any leads how to access PR comment on Github Action
someone was able to fix that?
steps.check.outputs.comment_body
seems to always be blank for me.I'm triggering this with a comment
RunTest test1
hoping that the job runsecho RunTest test1
However I get
echo
as the step name and a blank echo output.If I replace the echo with 'echo ${{ steps.check.outputs.trigger }}' I get
echo true
so it seemscomment_body
has an issue