Skip to content

Commit 11a8817

Browse files
committed
Only try to comment if it's a PR
1 parent af548aa commit 11a8817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/preview-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ jobs:
239239
240240
- name: Comment on PR
241241
continue-on-error: true
242-
if: inputs.disable-comments != 'true' && env.MATCH == 'true' && steps.deployment.outputs.result && steps.check-files.outputs.all_changed_files
242+
if: startsWith(github.event_name, 'pull_request') && inputs.disable-comments != 'true' && env.MATCH == 'true' && steps.deployment.outputs.result && steps.check-files.outputs.all_changed_files
243243
uses: actions/github-script@v7
244244
env:
245245
ALL_CHANGED_FILES: ${{ steps.check-files.outputs.all_changed_files }}

0 commit comments

Comments
 (0)