Skip to content

Commit 9a0a87b

Browse files
committed
Fix finding comment
1 parent 5735fd0 commit 9a0a87b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,19 @@ jobs:
7575
publish_branch: gh-pages
7676
destination_dir: ${{ steps.get-pr-number.outputs.pr_number }}
7777

78+
- name: Find PR comment
79+
uses: peter-evans/find-comment@v3
80+
id: fc
81+
with:
82+
issue-number: ${{ steps.get-pr-number.outputs.pr_number }}
83+
comment-author: github-actions[bot]
84+
body-includes: Preview the changes for PR
85+
7886
- name: Create or update PR comment
7987
if: steps.get-pr-number.outputs.pr_number != 'main'
80-
uses: peter-evans/create-or-update-comment@v3
88+
uses: peter-evans/create-or-update-comment@v4
8189
with:
82-
token: ${{ github.token }}
90+
comment-id: ${{ steps.fc.outputs.comment-id }}
8391
issue-number: ${{ steps.get-pr-number.outputs.pr_number }}
8492
body: 'Preview the changes for PR #${{ steps.get-pr-number.outputs.pr_number }} (for commit ${{ github.event.workflow_run.head_sha }}) at https://gh.cp-algorithms.com/${{ steps.get-pr-number.outputs.pr_number }}/.'
85-
body-includes: 'Preview the changes for PR'
86-
mode: replace
93+
edit-mode: replace

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy