mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
add file conditionals
This commit is contained in:
@@ -2,19 +2,17 @@
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
echo $INPUT_FILE
|
||||
|
||||
if [ "x$INPUT_FILE" == "x" ] || [ "x$INPUT_TOKEN" == "x" ];
|
||||
then
|
||||
echo "some variables are null"
|
||||
fi
|
||||
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
else
|
||||
bash <(curl -s https://codecov.io/bash) -t $1
|
||||
elif [ "x$INPUT_TOKEN" == "x" ] && [ "x$INPUT_FILE" == "x" ]
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user