Added branch parameter to bash

This commit is contained in:
Mauro Vime Castillo 2019-11-11 15:03:29 +01:00
parent d5749ba79a
commit a04d7a5a16
2 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,9 @@ inputs:
flags:
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
required: false
branch:
description: 'Branch associated with this report'
required: false
branding:
color: 'red'
icon: 'umbrella'
@ -25,4 +28,5 @@ runs:
- ${{ inputs.token }}
- ${{ inputs.file }}
- ${{ inputs.flags }}
- ${{ inputs.branch }}

View file

@ -10,11 +10,13 @@ if [ "x$INPUT_FILE" != 'x' ]; then
-t "$INPUT_TOKEN" \
-n "$INPUT_NAME" \
-F "$INPUT_FLAGS" \
-B "$INPUT_BRANCH" \
-Z || echo 'Codecov upload failed'
else
curl -s https://codecov.io/bash | bash -s -- \
-t "$INPUT_TOKEN" \
-n "$INPUT_NAME" \
-F "$INPUT_FLAGS" \
-B "$INPUT_BRANCH" \
-Z || echo 'Codecov upload failed'
fi