Files
codecov-action/entrypoint.sh
T

19 lines
416 B
Bash
Raw Normal View History

2019-08-06 14:02:11 -07:00
#!/bin/bash
set -eu
2019-08-06 18:02:35 -07:00
if [ $# -eq 0 ]
2019-08-07 11:39:29 -07:00
then
2019-08-07 11:41:02 -07:00
bash <(curl -s https://codecov.io/bash)
2019-08-07 11:44:00 -07:00
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
2019-08-07 11:39:29 -07:00
then
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE
2019-08-07 11:44:00 -07:00
elif [ "x$INPUT_TOKEN" != "x" ]
2019-08-07 11:39:29 -07:00
then
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN
2019-08-07 11:44:00 -07:00
elif [ "x$INPUT_FILE" != "x" ]
2019-08-07 11:39:29 -07:00
then
bash <(curl -s https://codecov.io/bash) -f $INPUT_FILE
2019-08-06 17:19:19 -07:00
fi