Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9010481

Browse files
authored
chore: updatecodecov-action tov4 (#1605)
The token has been added to the repository secrets.
1 parent8ceaa25 commit9010481

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎.github/workflows/UploadCoverageReport.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ name: UploadCoverageReport
88
-master
99
pull_request:
1010

11+
env:
12+
REPORT_PATH:"coverage/coverage-final.json"
13+
1114
jobs:
1215
UploadCoverageReport:
1316
runs-on:ubuntu-latest
@@ -25,9 +28,18 @@ jobs:
2528
-name:Generate coverage report
2629
run:npm test -- --coverage
2730

28-
-name:Upload coverage to codecov
29-
uses:codecov/codecov-action@v3
31+
-name:Upload coverage to codecov (tokenless)
32+
if:github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
33+
uses:codecov/codecov-action@v4
34+
with:
35+
files:"${{ env.REPORT_PATH }}"
36+
fail_ci_if_error:true
37+
38+
-name:Upload coverage to codecov (with token)
39+
if:"! github.event.pull_request.head.repo.fork"
40+
uses:codecov/codecov-action@v4
3041
with:
31-
files:"coverage/coverage-final.json"
42+
token:${{ secrets.CODECOV_TOKEN }}
43+
files:"${{ env.REPORT_PATH }}"
3244
fail_ci_if_error:true
3345
...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp