Add build number to supported inputs options #228
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Let users substitute an alternate build number for the default build number:
S{{ github.run_id }}
.build-number
to input options and pass it to the binary.--build-number
is correctly passed tocoverage-reporter
Contributed by
Alternative Approach: Coveralls Environment Variables
Please note that substituting key input values, like build number (aka. service_number), so they are passed to the
coverage-reporter
binary from thisgithub-action
, is always possible through the use of Coveralls Environment Variables.To substitute build number, use
COVERALLS_SERVICE_NUMBER
in your step config:${{ github.run_id }}
that can be used to tie several GitHub Actions workflows together at Coveralls is commit sha (${{ github.sha }}
), so a configuration like the one below will override the default (${{ github.run_id }}
):Parallel upload step:
In the case of this substitution, make sure you also pass it to the "Parallel finished" step, which requires the build number to find your build at Coveralls:
Parallel finished step: