pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/TheAlgorithms/JavaScript/commit/9010481c2930d65621f18f41c216f29fceaa8807

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-cbf357275a7402ca.css" /> chore: update `codecov-action` to `v4` (#1605) · TheAlgorithms/JavaScript@9010481 · GitHub
Skip to content

Commit 9010481

Browse files
authored
chore: update codecov-action to v4 (#1605)
The token has been added to the repository secrets.
1 parent 8ceaa25 commit 9010481

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy