mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
manage file uploads
This commit is contained in:
@@ -4,19 +4,15 @@ set -eu
|
|||||||
|
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "inside first if"
|
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
||||||
then
|
then
|
||||||
echo "inside both"
|
|
||||||
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ]
|
||||||
then
|
then
|
||||||
echo "inside token"
|
|
||||||
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN
|
||||||
elif [ "x$INPUT_FILE" != "x" ]
|
elif [ "x$INPUT_FILE" != "x" ]
|
||||||
then
|
then
|
||||||
echo "inside file"
|
|
||||||
bash <(curl -s https://codecov.io/bash) -f $INPUT_FILE
|
bash <(curl -s https://codecov.io/bash) -f $INPUT_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user