Skip to content

Commit

Permalink
fix: PR comment 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed May 29, 2024
1 parent a36707f commit f73e713
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,12 @@ jobs:
comments += `| ${colorCode} ${formattedName} | ${average.toFixed(1)}${unit} |\n`;
});
// Pull Request에 Comment 작성
if (comments && context.issue.number) {
const issue_number = context.issue.number;
const repo = context.repo.repo;
const owner = context.repo.owner;
github.rest.issues.createComment({
owner,
repo,
issue_number,
body: comments
});
} else {
console.log("No PR COMMENT!");
};
// comment OUT
core.setOutput('comments', comments)
- name: Comment PR
uses: unsplash/comment-on-pr@v1.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: ${{ steps.format_lighthouse_score.outputs.comments}}

0 comments on commit f73e713

Please sign in to comment.