Skip to content

Commit

Permalink
[ci] coverage use dedicated token
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy authored Apr 24, 2023
1 parent a6f4cc1 commit ac73217
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI Coverage

on: [pull_request]
on:
pull_request:
types: [opened, edited]

jobs:
coverage:
Expand Down Expand Up @@ -38,13 +40,14 @@ jobs:
SCORE_NEW: ${{ steps.get_coverage.outputs.new_coverage_score }}
SCORE_DIFF: ${{ steps.get_coverage.outputs.diff_score }}
with:
github-token: ${{ secrets.COVERAGE_REPORT_TOKEN }}
script: |
const comment = `## 🤖 Coverage Update
* Commit: ${process.env.COMMIT}
* Current Coverage: ${process.env.SCORE_OLD}%
* New Coverage: ${process.env.SCORE_NEW}%
* Diff: ${process.env.SCORE_DIFF}
* Diff: ${process.env.SCORE_DIFF}
`;
const { owner, repo, number } = context.issue;
await github.rest.issues.createComment({ owner, repo, issue_number: number, body: comment });

0 comments on commit ac73217

Please sign in to comment.