This action detects if an issue comment event happens on a pull request.
See Releases page.
See action.yml of your version.
Please make sure your workflow will run on issue_comment events.
on:
issue_comment
Add this action to steps.
- uses: jmatsu/detect-issue-comment-to-pr-action@<tag>
id: filter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "I'm a pull request (${{ steps.filter.outputs.pull_number }})"
if: steps.filter.outputs.is_pull_request == 'true'
- run: echo "I'm not a pull request"
if: steps.filter.outputs.is_pull_request != 'true'
For more detail, please read action.yml and workflow examples