diff --git a/.github/workflows/pr-lighthouse.yml b/.github/workflows/pr-lighthouse.yml index 7cf9b67..6b5d76b 100644 --- a/.github/workflows/pr-lighthouse.yml +++ b/.github/workflows/pr-lighthouse.yml @@ -77,3 +77,14 @@ jobs: with: issue-number: ${{ github.event.number }} body: ${{ steps.get-comment-body.outputs.body }} + + - name: Update Comment + 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 }} + comment-id: ${{ steps.fc.outputs.comment-id }} + body: | + **Visualizer Report** + - You can view the results [here](${{ steps.deployment.outputs.page_url }}). + edit-mode: replace diff --git a/.github/workflows/pr-visualizer.yml b/.github/workflows/pr-visualizer.yml index a97152d..8ab58b3 100644 --- a/.github/workflows/pr-visualizer.yml +++ b/.github/workflows/pr-visualizer.yml @@ -40,7 +40,7 @@ jobs: issue-number: ${{ github.event.number }} format: 'json' - - name: Create or update comment + - name: Create comment uses: peter-evans/create-or-update-comment@v2 if: success() && github.event.number && steps.fc.outputs.comment-id == '0' with: @@ -48,3 +48,14 @@ 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: + issue-number: ${{ github.event.number }} + comment-id: ${{ steps.fc.outputs.comment-id }} + body: | + **Visualizer Report** + - You can view the results [here](${{ steps.deployment.outputs.page_url }}). + edit-mode: replace