Skip to content

Commit e0b68c6

Browse files
fix: show both token uses in readme (#1250)
1 parent 1f9f557 commit e0b68c6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,25 @@ steps:
3535
- uses: actions/checkout@master
3636
- uses: codecov/codecov-action@v4
3737
with:
38+
fail_ci_if_error: true # optional (default = false)
3839
files: ./coverage1.xml,./coverage2.xml # optional
3940
flags: unittests # optional
4041
name: codecov-umbrella # optional
42+
token: ${{ secrets.CODECOV_TOKEN }} # required
43+
verbose: true # optional (default = false)
44+
```
45+
46+
The Codecov token can also be passed in via environment variables:
47+
48+
```yaml
49+
steps:
50+
- uses: actions/checkout@master
51+
- uses: codecov/codecov-action@v4
52+
with:
4153
fail_ci_if_error: true # optional (default = false)
54+
files: ./coverage1.xml,./coverage2.xml # optional
55+
flags: unittests # optional
56+
name: codecov-umbrella # optional
4257
verbose: true # optional (default = false)
4358
env:
4459
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -125,9 +140,8 @@ jobs:
125140
files: ./coverage1.xml,./coverage2.xml,!./cache
126141
flags: unittests
127142
name: codecov-umbrella
143+
token: ${{ secrets.CODECOV_TOKEN }}
128144
verbose: true
129-
env:
130-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
131145
```
132146
## Contributing
133147

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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