mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-15 23:41:45 +00:00
add name input with debug cmds
This commit is contained in:
parent
e749576e48
commit
9aebf8f59e
2 changed files with 47 additions and 1 deletions
|
|
@ -2,6 +2,9 @@ name: 'Codecov'
|
||||||
description: 'GitHub action that uploads coverage reports for your repository to codecov.io'
|
description: 'GitHub action that uploads coverage reports for your repository to codecov.io'
|
||||||
author: 'Ibrahim Ali @ Codecov'
|
author: 'Ibrahim Ali @ Codecov'
|
||||||
inputs:
|
inputs:
|
||||||
|
name:
|
||||||
|
description: 'User defined upload name. Visible in Codecov's UI'
|
||||||
|
required: false
|
||||||
token:
|
token:
|
||||||
description: 'Set the repository token'
|
description: 'Set the repository token'
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -18,6 +21,8 @@ runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
args:
|
args:
|
||||||
|
- ${{ inputs.name }}
|
||||||
- ${{ inputs.token }}
|
- ${{ inputs.token }}
|
||||||
- ${{ inputs.file }}
|
- ${{ inputs.file }}
|
||||||
- ${{ inputs.flags }}
|
- ${{ inputs.flags }}
|
||||||
|
|
||||||
|
|
@ -4,29 +4,70 @@ set -eu
|
||||||
|
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
|
echo "inside no args"
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_FLAGS" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside all 4"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -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
|
||||||
|
echo "inside token file flags"
|
||||||
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE -F $INPUT_FLAGS
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE -F $INPUT_FLAGS
|
||||||
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside token file name"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE -n $INPUT_NAME
|
||||||
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_NAME" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside token name flags"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -n $INPUT_NAME -F $INPUT_FLAGS
|
||||||
|
elif [ "x$INPUT_NAME" != "x" ] && [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside name file flags"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -n $INPUT_NAME -f $INPUT_FILE -F $INPUT_FLAGS
|
||||||
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
||||||
then
|
then
|
||||||
|
echo "inside token file"
|
||||||
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" ] && [ "x$INPUT_FLAGS" != "x" ]
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FLAGS" != "x" ]
|
||||||
then
|
then
|
||||||
|
echo "inside token flags"
|
||||||
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -F $INPUT_FLAGS
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -F $INPUT_FLAGS
|
||||||
elif [ "x$INPUT_FLAGS" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
elif [ "x$INPUT_FLAGS" != "x" ] && [ "x$INPUT_FILE" != "x" ]
|
||||||
then
|
then
|
||||||
|
echo "inside flags file"
|
||||||
bash <(curl -s https://codecov.io/bash) -F $INPUT_FLAGS -f $INPUT_FILE
|
bash <(curl -s https://codecov.io/bash) -F $INPUT_FLAGS -f $INPUT_FILE
|
||||||
|
elif [ "x$INPUT_FLAGS" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside flags name"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -F $INPUT_FLAGS -n $INPUT_NAME
|
||||||
|
elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside token name"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -n $INPUT_NAME
|
||||||
|
elif [ "x$INPUT_FILE" != "x" ] && [ "x$INPUT_NAME" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside file name"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -f $INPUT_FILE -n $INPUT_NAME
|
||||||
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
|
||||||
elif [ "x$INPUT_FLAGS" != "x" ]
|
elif [ "x$INPUT_FLAGS" != "x" ]
|
||||||
then
|
then
|
||||||
|
echo "inside flags"
|
||||||
bash <(curl -s https://codecov.io/bash) -F $INPUT_FLAGS
|
bash <(curl -s https://codecov.io/bash) -F $INPUT_FLAGS
|
||||||
|
elif [ "x$INPUT_NAME" != "x" ]
|
||||||
|
then
|
||||||
|
echo "inside name"
|
||||||
|
bash <(curl -s https://codecov.io/bash) -n $INPUT_NAME
|
||||||
else
|
else
|
||||||
|
echo "error"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue