diff --git a/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt b/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt index dde767a04..648b57de3 100644 --- a/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt +++ b/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt @@ -309,9 +309,9 @@ private fun Metadata.linkedMapOfInputs(inputTypings: Map): CodeB inputs.forEach { (key, value) -> val asStringCode = inputTypings.getInputTyping(key).asString() if (!value.shouldBeNonNullInBinding()) { - add("%N?.let { %S to it$asStringCode },\n", key.toCamelCase(), key) + add("%N?.let { %S.to(it$asStringCode) },\n", key.toCamelCase(), key) } else { - add("%S to %N$asStringCode,\n", key, key.toCamelCase()) + add("%S.to(%N$asStringCode),\n", key, key.toCamelCase()) } } add("*$CUSTOM_INPUTS.%M().%M(),\n", Types.mapToList, Types.listToArray)