From 2dc29fac45135df518b150236f6439671500520b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Tue, 6 Aug 2019 18:02:35 -0700 Subject: [PATCH] ensure args > 0 --- action.yml | 6 +++--- entrypoint.sh | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 8ab386a..0260304 100644 --- a/action.yml +++ b/action.yml @@ -1,9 +1,9 @@ -name: 'Codecov Github Action' +name: 'Codecov' description: 'Github action that uploads coverage reports for this repository to codecov.io' author: 'Ib @ Codecov' inputs: 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' file: 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)' default: '' token: - description: 'Set the private repository token (defaults to secret CODECOV_TOKEN)' + description: 'Set the private repository token branding: color: 'red' icon: 'umbrella' diff --git a/entrypoint.sh b/entrypoint.sh index 59e80a4..94edc80 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,10 +2,9 @@ set -eu -if [ -z "$1" ] +if [ $# -eq 0 ] then - echo "No token supplied" - exit + echo "No arguments supplied" fi bash <(curl -s https://codecov.io/bash) -t $1 \ No newline at end of file