mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
19 lines
416 B
Bash
19 lines
416 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
bash <(curl -s https://codecov.io/bash)
|
|
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
|
|
|