mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
ensure args > 0
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: 'Codecov Github Action'
|
name: 'Codecov'
|
||||||
description: 'Github action that uploads coverage reports for this repository to codecov.io'
|
description: 'Github action that uploads coverage reports for this repository to codecov.io'
|
||||||
author: 'Ib @ Codecov'
|
author: 'Ib @ Codecov'
|
||||||
inputs:
|
inputs:
|
||||||
conf:
|
conf:
|
||||||
description: 'Used to specify the location of the .codecov.yml config file'
|
description: 'Used to specify the location of the codecov.yml config file'
|
||||||
default: 'codecov.yml'
|
default: 'codecov.yml'
|
||||||
file:
|
file:
|
||||||
description: 'Path to the code coverage data file to upload'
|
description: 'Path to the code coverage data file to upload'
|
||||||
@@ -12,7 +12,7 @@ inputs:
|
|||||||
description: 'Flag the upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
description: 'Flag the upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
||||||
default: ''
|
default: ''
|
||||||
token:
|
token:
|
||||||
description: 'Set the private repository token (defaults to secret CODECOV_TOKEN)'
|
description: 'Set the private repository token
|
||||||
branding:
|
branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
|
|||||||
@@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if [ -z "$1" ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "No token supplied"
|
echo "No arguments supplied"
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bash <(curl -s https://codecov.io/bash) -t $1
|
bash <(curl -s https://codecov.io/bash) -t $1
|
||||||
Reference in New Issue
Block a user