Skip to content

Commit

Permalink
docs: condition on step if pull_request (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Térence Hollander <[email protected]>
  • Loading branch information
ericcornelissen and thollander authored May 5, 2021
1 parent 71efef5 commit 52e50e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 52e50e9

Please sign in to comment.