Skip to content

Commit

Permalink
fix: comment 방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Jun 2, 2024
1 parent f3732ed commit cf1300b
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}

0 comments on commit cf1300b

Please sign in to comment.