mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
27 lines
413 B
Bash
27 lines
413 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
if [ "x$1" == "x" ] || [ "x$2" == "x" ];
|
|
then
|
|
echo "both variables are null"
|
|
fi
|
|
|
|
if [ -z "$1" ] || [ -z "$2" ]; then
|
|
echo 'Need 2 parameter are not empty'
|
|
fi
|
|
|
|
echo $INPUT_FILE
|
|
echo $1
|
|
echo $2
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
bash <(curl -s https://codecov.io/bash)
|
|
else
|
|
bash <(curl -s https://codecov.io/bash) -t $1
|
|
fi
|
|
|