Skip to content

Commit fd2c240

Browse files
committed
remove extra conditions for comment update
1 parent 8067451 commit fd2c240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
clean: false
142142

143143
- name: Find Existing Comment
144-
if: ${{ github.event_name == 'pull_request_target' && steps.check-label.outputs.result == 'true' && steps.find-comment.outputs.comment-id == '' }}
144+
if: ${{ github.event_name == 'pull_request_target' && steps.check-label.outputs.result == 'true' }}
145145
id: find-comment2
146146
uses: peter-evans/find-comment@v3
147147
with:
@@ -150,7 +150,7 @@ jobs:
150150
body-includes: ${{ env.COMMENT_IDENTIFIER }}
151151

152152
- name: Update Comment with Preview Link
153-
if: ${{ github.event_name == 'pull_request_target' && steps.check-label.outputs.result == 'true' && (steps.find-comment2.outputs.comment-id != ''|| steps.find-comment.outputs.comment-id != '') }}
153+
if: ${{ github.event_name == 'pull_request_target' && steps.check-label.outputs.result == 'true' }}
154154
uses: peter-evans/create-or-update-comment@v4
155155
with:
156156
comment-id: ${{ steps.find-comment2.outputs.comment-id }}

0 commit comments

Comments
 (0)