mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 06:27:26 +00:00
Allow for passing names with spaces
This commit is contained in:
parent
1c4a4261fa
commit
47212e6e8a
1 changed files with 8 additions and 8 deletions
|
|
@ -10,28 +10,28 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_FLAGS" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_FLAGS" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -f $INPUT_FILE -F $INPUT_FLAGS -n $INPUT_NAME
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -f "$INPUT_FILE" -F "$INPUT_FLAGS" -n "$INPUT_NAME"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -f $INPUT_FILE -F $INPUT_FLAGS
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -f "$INPUT_FILE" -F "$INPUT_FLAGS"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -f $INPUT_FILE -n $INPUT_NAME
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -f "$INPUT_FILE" -n "$INPUT_NAME"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_NAME" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_NAME" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -n $INPUT_NAME -F $INPUT_FLAGS
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -n "$INPUT_NAME" -F "$INPUT_FLAGS"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -f $INPUT_FILE
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -f "$INPUT_FILE"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -F $INPUT_FLAGS
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -F "$INPUT_FLAGS"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN -n $INPUT_NAME
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN" -n "$INPUT_NAME"
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ]
|
||||||
then
|
then
|
||||||
curl -s https://codecov.io/bash | bash -s -- -t $INPUT_TOKEN
|
curl -s https://codecov.io/bash | bash -s -- -t "$INPUT_TOKEN"
|
||||||
else
|
else
|
||||||
echo "Please provide an upload token from codecov.io with valid arguments"
|
echo "Please provide an upload token from codecov.io with valid arguments"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue