Skip to content

Commit 5e6d246

Browse files
brianatgatherafinetooth
authored andcommitted
add build number to inputs and pass it to the binary
1 parent 0ae2400 commit 5e6d246

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ inputs:
2222
flag-name:
2323
description: 'Job flag name, e.g. "Unit", "Functional", or "Integration". Will be shown in the Coveralls UI.'
2424
required: false
25+
build-number:
26+
description: 'Override the build number autodetected by CI. This is useful if your CI tool assigns a different build number per parallel build.'
27+
required: false
2528
parallel:
2629
description: 'Set to true if you are running parallel jobs, then use "parallel-finished: true" for the last action.'
2730
required: false
@@ -195,6 +198,7 @@ runs:
195198
coveralls done
196199
${{ inputs.debug == 'true' && '--debug' || '' }}
197200
${{ inputs.measure == 'true' && '--measure' || '' }}
201+
${{ inputs.build-number && format('--build-number {0}', inputs.build-number) || '' }}
198202
${{ inputs.fail-on-error == 'false' && '--no-fail' || '' }}
199203
env:
200204
COVERALLS_DEBUG: ${{ inputs.debug }}
@@ -216,6 +220,7 @@ runs:
216220
${{ inputs.fail-on-error == 'false' && '--no-fail' || '' }}
217221
${{ inputs.allow-empty == 'true' && '--allow-empty' || '' }}
218222
${{ inputs.base-path && format('--base-path {0}', inputs.base-path) || '' }}
223+
${{ inputs.build-number && format('--build-number {0}', inputs.build-number) || '' }}
219224
${{ inputs.format && format('--format {0}', inputs.format) || '' }}
220225
${{ inputs.file || inputs.path-to-lcov }}
221226
${{ inputs.files }}

0 commit comments

Comments
 (0)