diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index d3b32afd..e2532b5d 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -33,20 +33,9 @@ jobs: id: get-score-comments uses: ./.github/actions/get-score-comments - - name: Find Comment - if: github.event_name == 'pull_request' - uses: peter-evans/find-comment@v2 - id: find_comment - with: - issue-number: ${{ github.event.pull_request.number }} - comment-author: 'github-actions[bot]' - body-includes: ⚡️ Lighthouse Average Scores Across Reports - - - name: Create or update comment - if: github.event_name == 'pull_request' - uses: peter-evans/create-or-update-comment@v2 + - name: Comment PR + uses: unsplash/comment-on-pr@v1.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - comment-id: ${{ steps.find_comment.outputs.comment-id }} - issue-number: ${{ github.event.pull_request.number }} - body: ${{ steps.get-score-comments.outputs.comments }} - edit-mode: replace + msg: ${{ steps.get-score-comments.outputs.comments }}