mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
Added branch parameter to bash
This commit is contained in:
parent
d5749ba79a
commit
a04d7a5a16
2 changed files with 6 additions and 0 deletions
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue