Skip to content

Commit

Permalink
fix: LightHouse 워크플로우 동작 조건 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Jun 2, 2024
1 parent cf1300b commit 4d65865
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: LightHouse CI

on: [push]
on:
pull_request:
branches:
- main

jobs:
lhci:
Expand Down Expand Up @@ -33,9 +36,20 @@ jobs:
id: get-score-comments
uses: ./.github/actions/get-score-comments

- name: Comment PR
uses: unsplash/comment-on-pr@v1.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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
with:
msg: ${{ steps.get-score-comments.outputs.comments }}
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

0 comments on commit 4d65865

Please sign in to comment.