mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-12 22:17:24 +00:00
add file conditionals
This commit is contained in:
parent
4b3f2da728
commit
0be151486e
1 changed files with 10 additions and 12 deletions
|
|
@ -2,19 +2,17 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
|
||||||
echo $INPUT_FILE
|
|
||||||
|
|
||||||
if [ "x$INPUT_FILE" == "x" ] || [ "x$INPUT_TOKEN" == "x" ];
|
|
||||||
then
|
|
||||||
echo "some variables are null"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
else
|
elif [ "x$INPUT_TOKEN" == "x" ] && [ "x$INPUT_FILE" == "x" ]
|
||||||
bash <(curl -s https://codecov.io/bash) -t $1
|
then
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE
|
||||||
|
elif [ "x$INPUT_TOKEN" == "x" ]
|
||||||
|
then
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN
|
||||||
|
elif [ "x$INPUT_FILE" == "x" ]
|
||||||
|
then
|
||||||
|
bash <(curl -s https://codecov.io/bash) -f $INPUT_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue