mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 15:07:25 +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:
|
flags:
|
||||||
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
||||||
required: false
|
required: false
|
||||||
|
branch:
|
||||||
|
description: 'Branch associated with this report'
|
||||||
|
required: false
|
||||||
branding:
|
branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
|
|
@ -25,4 +28,5 @@ runs:
|
||||||
- ${{ inputs.token }}
|
- ${{ inputs.token }}
|
||||||
- ${{ inputs.file }}
|
- ${{ inputs.file }}
|
||||||
- ${{ inputs.flags }}
|
- ${{ inputs.flags }}
|
||||||
|
- ${{ inputs.branch }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,13 @@ if [ "x$INPUT_FILE" != 'x' ]; then
|
||||||
-t "$INPUT_TOKEN" \
|
-t "$INPUT_TOKEN" \
|
||||||
-n "$INPUT_NAME" \
|
-n "$INPUT_NAME" \
|
||||||
-F "$INPUT_FLAGS" \
|
-F "$INPUT_FLAGS" \
|
||||||
|
-B "$INPUT_BRANCH" \
|
||||||
-Z || echo 'Codecov upload failed'
|
-Z || echo 'Codecov upload failed'
|
||||||
else
|
else
|
||||||
curl -s https://codecov.io/bash | bash -s -- \
|
curl -s https://codecov.io/bash | bash -s -- \
|
||||||
-t "$INPUT_TOKEN" \
|
-t "$INPUT_TOKEN" \
|
||||||
-n "$INPUT_NAME" \
|
-n "$INPUT_NAME" \
|
||||||
-F "$INPUT_FLAGS" \
|
-F "$INPUT_FLAGS" \
|
||||||
|
-B "$INPUT_BRANCH" \
|
||||||
-Z || echo 'Codecov upload failed'
|
-Z || echo 'Codecov upload failed'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue