github-workflows-kt
github-workflows-kt copied to clipboard
[Bug] encoding colon as value does not work properly
Action
run(
command = """
:
""".trimIndent()
)
Expected
No exception
Actual
[...]
- id: step-2
run: :
[...]
com.charleskorn.kaml.MalformedYamlException at jobs.test_default_distribution.steps[2].run on line 98, column 14: mapping values are not allowed here (is the indentation level of this line or a line nearby incorrect?)
at line 98, column 14:
run: :
^
at com.charleskorn.kaml.YamlParser.translateYamlEngineException(YamlParser.kt:89)
Workaround, if exists
run(
command = """
:
""".trimIndent()
)
Library version
v0.23.0
See https://github.com/krzema12/github-actions-kotlin-dsl/issues/80#issuecomment-1200504222, it will be fixed in scope of that task.
After addressing #80, the colon is now properly quoted.