mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
b6fd957271
Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"type": "RANDOM",
|
|
"actions": [
|
|
{
|
|
"weight": 1,
|
|
"action": {
|
|
"type": "RANDOM",
|
|
"actions": [
|
|
{
|
|
"weight": 1,
|
|
"action": {
|
|
"type": "PREVIEW_SCRIPT",
|
|
"workspace": "demo",
|
|
"language": "deno",
|
|
"args": {},
|
|
"content": "export async function main() { return \"Hello World\"; }"
|
|
}
|
|
},
|
|
{
|
|
"weight": 1,
|
|
"action": {
|
|
"type": "PREVIEW_SCRIPT",
|
|
"workspace": "demo",
|
|
"language": "python3",
|
|
"args": {},
|
|
"content": "def main(): return \"Hello World\";"
|
|
}
|
|
},
|
|
{
|
|
"weight": 1,
|
|
"action": {
|
|
"type": "PREVIEW_SCRIPT",
|
|
"workspace": "demo",
|
|
"language": "go",
|
|
"args": {},
|
|
"content": "func main() { return \"Hello World\" }"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"weight": 0.5,
|
|
"action": {
|
|
"type": "PREVIEW_SCRIPT",
|
|
"workspace": "demo",
|
|
"language": "deno",
|
|
"args": {},
|
|
"content": "import { delay } from \"https://deno.land/std@0.131.0/async/delay.ts\"; export async function main() { await delay(1000); return \"Hello World\"; }"
|
|
}
|
|
}
|
|
]
|
|
}
|