From caffaa27c70f7913798cba62124e9f11ea0761a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Wed, 7 Aug 2019 10:51:41 -0700 Subject: [PATCH] add file path param --- action.yml | 4 ++++ entrypoint.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/action.yml b/action.yml index f877748..e5f5c30 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,9 @@ inputs: token: description: 'Set the repository token' required: false + file: + description: 'Path to coverage file' + required: false branding: color: 'red' icon: 'umbrella' @@ -13,3 +16,4 @@ runs: image: 'Dockerfile' args: - ${{ inputs.token }} + - ${{ inputs.file }} diff --git a/entrypoint.sh b/entrypoint.sh index 5f2a6fe..43cdb02 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,8 @@ set -eu +echo $2 + if [ $# -eq 0 ] then bash <(curl -s https://codecov.io/bash)