When I run drone starlark --source $FILE --stdout
I get this error .drone.star:8:24: got string literal, want '}'
and I’m using the example at the top of this page.
What am I doing wrong?
EDIT:
I’m using drone CLI version 1.2.1
When I run drone starlark --source $FILE --stdout
I get this error .drone.star:8:24: got string literal, want '}'
and I’m using the example at the top of this page.
What am I doing wrong?
EDIT:
I’m using drone CLI version 1.2.1
For those trying to figure out the answer to this, the example is missing commas in the list:
def main(ctx):
return {
'kind': 'pipeline',
'name': 'build',
'steps': [
{
'name': 'build',
'image': 'alpine',
'commands': [
'echo hello world'
]
}
]
}
If you run this script with the same command above it will translate it into yaml.