Skip to content

Commit

Permalink
Add check so that the job is only run on a pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
programming-wolf committed May 17, 2023
1 parent e72087e commit db5beda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update_pr_with_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
comment:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }} && ${{github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Get Artifact and Pull request info
Expand Down

0 comments on commit db5beda

Please sign in to comment.