File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 40
40
runs-on : ubuntu-latest
41
41
steps :
42
42
- name : Update PR comment to reflect cleanup
43
+ uses : peter-evans/find-comment@v2
44
+ id : find-comment
45
+ with :
46
+ token : ${{ secrets.GITHUB_TOKEN }}
47
+ issue-number : ${{ github.event.pull_request.number }}
48
+ body-includes : ' <!-- pr-preview-comment -->'
49
+
50
+ - name : Update PR comment to reflect cleanup
51
+ if : steps.find-comment.outputs.comment-id != ''
43
52
uses : peter-evans/create-or-update-comment@v3
44
53
with :
45
54
token : ${{ secrets.GITHUB_TOKEN }}
55
+ comment-id : ${{ steps.find-comment.outputs.comment-id }}
46
56
issue-number : ${{ github.event.pull_request.number }}
47
57
edit-mode : replace
48
58
body : |
Original file line number Diff line number Diff line change @@ -258,12 +258,22 @@ jobs:
258
258
DEPLOY_URL=https://neuralmagic.github.io/guidellm/ui/pr/${{ steps.build.outputs.pr_number }}
259
259
echo "url=${DEPLOY_URL}" >> $GITHUB_OUTPUT
260
260
261
+ - name : Find PR comment
262
+ uses : peter-evans/find-comment@v2
263
+ id : find-comment
264
+ with :
265
+ token : ${{ secrets.GITHUB_TOKEN }}
266
+ issue-number : ${{ github.event.pull_request.number }}
267
+ body-includes : ' <!-- pr-preview-comment -->'
268
+
261
269
- name : Post Deployment URL to PR
262
270
uses : peter-evans/create-or-update-comment@v3
263
271
with :
264
272
token : ${{ secrets.GITHUB_TOKEN }}
273
+ comment-id : ${{ steps.find-comment.outputs.comment-id }}
265
274
issue-number : ${{ github.event.pull_request.number }}
266
275
edit-mode : replace
267
276
body : |
268
277
<!-- pr-preview-comment -->
269
278
🎉 **Live Preview:** [Click here to view the live version](${{ steps.deploy.outputs.url }})
279
+ *Last updated: ${{ github.sha }}*
You can’t perform that action at this time.
0 commit comments