-
Notifications
You must be signed in to change notification settings - Fork 2
/
catalog.json
50 lines (50 loc) · 1.59 KB
/
catalog.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"id": "examples-<<<TENANT_ID>>>",
"technicalName": "examples",
"name": "Automation Pilot Examples",
"description": "Source: https://github.com/SAP-samples/automation-pilot-examples",
"owner": "<<<TENANT_ID>>>",
"inputs": [],
"commands": [
{
"configuration": {
"values": [],
"output": {
"result": "$(.NodeJsScript.output.output | join(\"\\n\"))"
},
"executors": [
{
"execute": "scripts-sapcp:ExecuteScript:2",
"input": {
"script": "#!/usr/bin/env bash\n\n# Install custom NPM package\nnpm install uuid &> /dev/null\n\n# Run the actual NodeJS script\nnode << EOF\n\nconst { v4: uuidv4 } = require('uuid');\n\nfor (let i = 0; i < 10; i++) {\n console.log(uuidv4());\n}\n\nEOF"
},
"alias": "NodeJsScript",
"progressMessage": null,
"initialDelay": null,
"pause": null,
"when": null,
"validate": null,
"autoRetry": null,
"repeat": null,
"errorMessages": []
}
],
"listeners": []
},
"id": "examples-<<<TENANT_ID>>>:UseCustomNpmPackage:1",
"name": "UseCustomNpmPackage",
"description": "Install and use custom NPM package in a script which generates UUIDs",
"catalog": "examples-<<<TENANT_ID>>>",
"version": 1,
"inputKeys": {},
"outputKeys": {
"result": {
"type": "string",
"sensitive": false,
"description": "Result of the NodeJS script"
}
},
"tags": {}
}
]
}