diff --git a/action.yml b/action.yml index 4697a29..99233f6 100644 --- a/action.yml +++ b/action.yml @@ -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 }} diff --git a/entrypoint.sh b/entrypoint.sh index 80e5946..107a671 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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