Compare commits

..

4 Commits
v0.1 ... v0.2

Author SHA1 Message Date
“ibrahim0814”
954f2171b8 no token required conditional 2019-08-06 21:46:14 -07:00
“ibrahim0814”
83134b4d62 token req clarification 2019-08-06 21:27:20 -07:00
“ibrahim0814”
da90402a6e correct version on readme 2019-08-06 21:15:30 -07:00
“ibrahim0814”
86b28dee2c rem codecov logo 2019-08-06 21:14:41 -07:00
3 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -4,7 +4,7 @@ author: 'Ib @ Codecov'
inputs:
token:
description: 'Set the repository token'
required: true
required: false
branding:
color: 'red'
icon: 'umbrella'

View File

@@ -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