mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 06:57:26 +00:00
fix: show both token uses in readme
This commit is contained in:
parent
1f9f5573d1
commit
fadc7f89ab
1 changed files with 16 additions and 2 deletions
18
README.md
18
README.md
|
|
@ -35,10 +35,25 @@ steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: codecov/codecov-action@v4
|
- uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
|
fail_ci_if_error: true # optional (default = false)
|
||||||
files: ./coverage1.xml,./coverage2.xml # optional
|
files: ./coverage1.xml,./coverage2.xml # optional
|
||||||
flags: unittests # optional
|
flags: unittests # optional
|
||||||
name: codecov-umbrella # optional
|
name: codecov-umbrella # optional
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }} # required
|
||||||
|
verbose: true # optional (default = false)
|
||||||
|
```
|
||||||
|
|
||||||
|
The Codecov token can also be passed in via environment variables:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
fail_ci_if_error: true # optional (default = false)
|
fail_ci_if_error: true # optional (default = false)
|
||||||
|
files: ./coverage1.xml,./coverage2.xml # optional
|
||||||
|
flags: unittests # optional
|
||||||
|
name: codecov-umbrella # optional
|
||||||
verbose: true # optional (default = false)
|
verbose: true # optional (default = false)
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
@ -125,9 +140,8 @@ jobs:
|
||||||
files: ./coverage1.xml,./coverage2.xml,!./cache
|
files: ./coverage1.xml,./coverage2.xml,!./cache
|
||||||
flags: unittests
|
flags: unittests
|
||||||
name: codecov-umbrella
|
name: codecov-umbrella
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
verbose: true
|
verbose: true
|
||||||
env:
|
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
```
|
```
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue