fix: do not care about the case of the inputs

This commit is contained in:
Amin Yahyaabadi 2021-09-16 03:51:09 -05:00
parent ea280dfd67
commit b4cb25de20
2 changed files with 3 additions and 3 deletions

View File

@ -24,6 +24,6 @@ The package will be usable from any environment (locally, GitHub Actions, etc).
- [x] setup cppcheck
- [x] setup doxygen
- [x] setup ccache
- [x] setup OpenCppCoverage
- [ ] setup gcc/mingw
- [ ] setup OpenCppCoverage
- [ ] setup vcpkg

View File

@ -15,7 +15,7 @@ import { setupOpencppcoverage } from "./opencppcoverage/opencppcoverage"
import { setupPython } from "./python/python"
function maybeGetInput(key: string) {
const value = core.getInput(key)
const value = core.getInput(key.toLowerCase())
if (value !== "false" && value !== "") {
return value
}
@ -65,7 +65,7 @@ export async function main(): Promise<number> {
// setup opencppCoverage
const opencppCoverageVersion = maybeGetInput("opencppcoverage")
if (opencppCoverageVersion !== undefined) {
await setupOpencppcoverage(gcovrVersion)
await setupOpencppcoverage(opencppCoverageVersion)
}
// setup llvm