Skip to content

Commit 7388290

Browse files
committed
Don't attempt to find and push a comment when not in the context of a PR
1 parent fb68d80 commit 7388290

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ jobs:
178178
echo -e "$header$comment_body" | tee "/tmp/dyff-output"
179179
180180
- name: Find dyff comment
181+
if: github.event.pull_request.number != ''
181182
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3
182183
id: find-dyff-comment
183184
with:
@@ -186,6 +187,7 @@ jobs:
186187
body-includes: 'dyff of changes in rendered templates'
187188

188189
- name: Create or update comment
190+
if: github.event.pull_request.number != ''
189191
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
190192
with:
191193
comment-id: ${{ steps.find-dyff-comment.outputs.comment-id }}

0 commit comments

Comments
 (0)