Skip to content

Commit 99e453a

Browse files
committed
Only try to leave a comment on actual pull requests
1 parent fe9243a commit 99e453a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575

7676
- name: Update or create preview comment
7777
uses: actions/github-script@v6
78+
if: github.event.workflow_run.event == 'pull_request'
7879
with:
7980
script: |
8081
const prNumber = ${{ github.event.workflow_run.pull_requests[0].number }};

0 commit comments

Comments
 (0)