mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
954f2171b8 | ||
|
|
83134b4d62 | ||
|
|
da90402a6e | ||
|
|
86b28dee2c |
@@ -1,4 +1,4 @@
|
||||
<p align="center"><img src="./codecov-logo.png" /></p>
|
||||
<!-- <p align="center"><img src="./codecov-logo.png" /></p> -->
|
||||
|
||||
# Codecov Github Action
|
||||
### Easily upload coverage reports to Codecov from Github Actions
|
||||
@@ -10,11 +10,11 @@ Inside your `.github/workflows/workflow.yml` file:
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/codecov-action@v1
|
||||
- uses: actions/codecov-action@v0.1
|
||||
with:
|
||||
token: ${{secrets.CODECOV_TOKEN}}
|
||||
```
|
||||
>**Note**: This assumes that you've set your Codecov token inside settings > secrets as `CODECOV_TOKEN`. If not, you can get an upload token for your specific repo on codecov.io
|
||||
>**Note**: This assumes that you've set your Codecov token inside settings > secrets as `CODECOV_TOKEN`. If not, you can get an upload token for your specific repo on codecov.io. A token is not required for public repositories.
|
||||
|
||||
## Arguments
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ author: 'Ib @ Codecov'
|
||||
inputs:
|
||||
token:
|
||||
description: 'Set the repository token'
|
||||
required: true
|
||||
required: false
|
||||
branding:
|
||||
color: 'red'
|
||||
icon: 'umbrella'
|
||||
|
||||
@@ -4,8 +4,8 @@ set -eu
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "No arguments supplied. Please make sure to provide an upload token"
|
||||
exit 1
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
else
|
||||
bash <(curl -s https://codecov.io/bash) -t $1
|
||||
fi
|
||||
|
||||
bash <(curl -s https://codecov.io/bash) -t $1
|
||||
Reference in New Issue
Block a user