Skip to content

Commit

Permalink
Only post PR comment if the workflow_run is a pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeal committed Feb 13, 2023
1 parent c81fbb1 commit 48e6678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/post_snapshot_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
jobs:
post-comment:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request'
steps:
- uses: haya14busa/action-workflow_run-status@v1
if: github.event.workflow_run.event == 'pull_request'
- name: 'Download artifact'
uses: actions/github-script@v6
with:
Expand Down

0 comments on commit 48e6678

Please sign in to comment.