Only post PR comment if the workflow_run is a pull request
diff --git a/.github/workflows/post_snapshot_comment.yml b/.github/workflows/post_snapshot_comment.yml
index c0259a5..2d86c15 100644
--- a/.github/workflows/post_snapshot_comment.yml
+++ b/.github/workflows/post_snapshot_comment.yml
@@ -9,9 +9,9 @@
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: