Skip to content

Commit 5eaa5b9

Browse files
committed
update workflow for cleanup
1 parent dc7096c commit 5eaa5b9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/development-cleanup.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,19 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- 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 != ''
4352
uses: peter-evans/create-or-update-comment@v3
4453
with:
4554
token: ${{ secrets.GITHUB_TOKEN }}
55+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
4656
issue-number: ${{ github.event.pull_request.number }}
4757
edit-mode: replace
4858
body: |

.github/workflows/development.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,22 @@ jobs:
258258
DEPLOY_URL=https://neuralmagic.github.io/guidellm/ui/pr/${{ steps.build.outputs.pr_number }}
259259
echo "url=${DEPLOY_URL}" >> $GITHUB_OUTPUT
260260
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+
261269
- name: Post Deployment URL to PR
262270
uses: peter-evans/create-or-update-comment@v3
263271
with:
264272
token: ${{ secrets.GITHUB_TOKEN }}
273+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
265274
issue-number: ${{ github.event.pull_request.number }}
266275
edit-mode: replace
267276
body: |
268277
<!-- pr-preview-comment -->
269278
🎉 **Live Preview:** [Click here to view the live version](${{ steps.deploy.outputs.url }})
279+
*Last updated: ${{ github.sha }}*

0 commit comments

Comments
 (0)