diff --git a/README.md b/README.md index b85d9039..8617bb62 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,7 @@ jobs: See examples in [opened PR](https://github.com/thollander/actions-comment-pull-request/pulls) ! -:information_source: : Make sure to listen to `pull_request` events. -Otherwise, it will not be able to comment the PR and you'll have an error. +:information_source: : Add `if: ${{ github.event_name == 'pull_request' }}` to this Action's step if your workflow is not only triggered by a `pull_request` event. It will ensure that you don't throw an error on this step. ## Contributing