From 3d46a2ee8c6ab8f9ea0e0950aeec8844518732f1 Mon Sep 17 00:00:00 2001 From: claustra01 Date: Sat, 10 Aug 2024 03:18:35 +0900 Subject: [PATCH] test --- .github/workflows/pr-lighthouse.yml | 4 ++-- .github/workflows/pr-visualizer.yml | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-lighthouse.yml b/.github/workflows/pr-lighthouse.yml index 48b501a..830078a 100644 --- a/.github/workflows/pr-lighthouse.yml +++ b/.github/workflows/pr-lighthouse.yml @@ -70,6 +70,7 @@ jobs: id: fc with: issue-number: ${{ github.event.number }} + includes-comment: "# Lighthouse Report" - name: Create Comment uses: peter-evans/create-or-update-comment@v2 @@ -82,7 +83,6 @@ jobs: uses: peter-evans/create-or-update-comment@v2 if: success() && github.event.number && steps.fc.outputs.comment-id != '0' with: - issue-number: ${{ github.event.number }} - includes-comment: "# Lighthouse Report" + comment-id: ${{ steps.fc.outputs.comment-id }} body: ${{ steps.get-comment-body.outputs.body }} edit-mode: replace diff --git a/.github/workflows/pr-visualizer.yml b/.github/workflows/pr-visualizer.yml index a2253f3..221184d 100644 --- a/.github/workflows/pr-visualizer.yml +++ b/.github/workflows/pr-visualizer.yml @@ -38,7 +38,7 @@ jobs: id: fc with: issue-number: ${{ github.event.number }} - format: 'json' + body-includes: '# Visualizer Report' - name: Create comment uses: peter-evans/create-or-update-comment@v2 @@ -48,3 +48,13 @@ jobs: body: | # Visualizer Report You can view the results [here](${{ steps.deployment.outputs.page_url }}). + + - name: Update comment + uses: peter-evans/create-or-update-comment@v2 + if: success() && github.event.number && steps.fc.outputs.comment-id != '0' + with: + comment-id: ${{ steps.fc.outputs.comment-id }} + body: | + # Visualizer Report + You can view the results [here](${{ steps.deployment.outputs.page_url }}). + edit-mode: replace