Last active
May 27, 2025 14:34
-
-
Save olim-dev/fcf7f4f77ea634925dac0345d8fbfc5a to your computer and use it in GitHub Desktop.
Github Version Control Qlik Automation Workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"blocks": [ | |
{ | |
"id": "60370C23-8A86-4C24-AB9D-F089DBF907FB", | |
"type": "StartBlock", | |
"disabled": false, | |
"name": "AppPublished", | |
"displayName": "App Published", | |
"comment": "", | |
"childId": "CD6A509C-7469-4510-9669-2284B53528B2", | |
"inputs": [ | |
{ | |
"id": "run_mode", | |
"value": "webhook", | |
"type": "select", | |
"structure": {} | |
}, | |
{ | |
"id": "datasourcetype_guid", | |
"value": "61a87510-c7a3-11ea-95da-0fb0c241e75c", | |
"type": "select", | |
"displayValue": "Qlik Cloud Services", | |
"structure": [] | |
}, | |
{ | |
"id": "webhook_event_guid", | |
"value": "365616d0-889f-11eb-a6c1-0fbe0dacf886", | |
"type": "select", | |
"displayValue": "App Published", | |
"structure": [] | |
}, | |
{ | |
"id": "webhook_param_613e0f80-5ddb-11ec-ab88-0d44ac0c427c", | |
"value": "spaceId eq \"66069911813c6b3c3b65dc65\"", | |
"type": "string", | |
"structure": [], | |
"lookupValues": { | |
"66069911813c6b3c3b65dc65": "Git Demo Published (66069911813c6b3c3b65dc65)" | |
} | |
}, | |
{ | |
"id": "test_payload", | |
"value": "{\n \"data\": {\n \"attributes\": {\n \"id\": \"example_4f5e293f-613b-4b35-94fb-8d1f51e0cf38\",\n \"name\": \"example_updated2\",\n \"owner\": \"example_auth0|763f637f15d88fe64d40773c68ae258f5ed099e69436be138353a65b1ea7c2e6\",\n \"originAppId\": \"example_d76ccd23-0383-4bcc-b2eb-0f0271d0e9aa\"\n }\n },\n \"source\": \"com.qlik/engine\",\n \"eventId\": \"example_6e1171a3-4cce-4492-b087-30482139d84f\",\n \"eventTime\": \"2021-09-09T07:44:10Z\",\n \"eventType\": \"com.qlik.v1.app.published\",\n \"extensions\": {\n \"userId\": \"example_BlVarUAUM9I0ei3MmKMejlDaF1sKPnN5\",\n \"spaceId\": \"example_6138a349faed485d36ae912b\",\n \"tenantId\": \"example_WL69WlNT4PRbwAA8EZ1sDblqjthluHL1\"\n },\n \"contentType\": \"application/json\",\n \"eventTypeVersion\": \"1.0.0\",\n \"cloudEventsVersion\": \"0.1\"\n}", | |
"type": "json", | |
"structure": [] | |
}, | |
{ | |
"id": "webhook_documentation", | |
"value": null, | |
"type": "string", | |
"structure": {} | |
} | |
], | |
"settings": [ | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": {} | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": 351, | |
"y": -398, | |
"logo": "https://cdn.qlikcloud.com/automations/logos/a2649cabda63b339ebc68a0c8d028f08.png" | |
}, | |
{ | |
"id": "CD6A509C-7469-4510-9669-2284B53528B2", | |
"type": "EndpointBlock", | |
"disabled": false, | |
"name": "getSpace", | |
"displayName": "Qlik Cloud Services - Get Space", | |
"comment": "", | |
"childId": "EB6DEF18-20B8-4D69-B78B-52B41A86A818", | |
"inputs": [ | |
{ | |
"id": "92f7bcd0-6d2d-11eb-9088-69419de8f253", | |
"value": "66069911813c6b3c3b65dc65", | |
"type": "string", | |
"displayValue": "Git Demo Published (66069911813c6b3c3b65dc65)", | |
"structure": [] | |
} | |
], | |
"settings": [ | |
{ | |
"id": "blendr_on_error", | |
"value": "stop", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "cache", | |
"value": "0", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": [] | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": -294, | |
"y": 260, | |
"datasourcetype_guid": "61a87510-c7a3-11ea-95da-0fb0c241e75c", | |
"endpoint_guid": "92afefd0-6d2d-11eb-aee2-055653605a8e", | |
"endpoint_role": "get" | |
}, | |
{ | |
"id": "EB6DEF18-20B8-4D69-B78B-52B41A86A818", | |
"type": "VariableBlock", | |
"disabled": false, | |
"name": "vRepoName", | |
"displayName": "Variable - vRepoName", | |
"comment": "", | |
"childId": "B619F145-3252-4843-83B9-4A66C6E57E05", | |
"inputs": [], | |
"settings": [], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": -278, | |
"y": 8, | |
"variableGuid": "A6BB3EB4-86F4-45ED-ACED-91E004229B64", | |
"operations": [ | |
{ | |
"id": "set_value", | |
"key": "664B41DF-E645-4CD1-9796-8918B3A2C872", | |
"name": "Set value of { variable }", | |
"value": "{replace: {$.getSpace.name}, ' ', '-'}" | |
}, | |
{ | |
"id": "set_value", | |
"key": "4936A57C-C3B3-414B-8F7E-0024987C2C17", | |
"name": "Set value of { variable }", | |
"value": "{lowercase: {$.vRepoName}}" | |
} | |
] | |
}, | |
{ | |
"id": "B619F145-3252-4843-83B9-4A66C6E57E05", | |
"type": "SnippetBlock", | |
"disabled": false, | |
"name": "GetAppInformation", | |
"displayName": "Qlik Cloud Services - Get App Information", | |
"comment": "", | |
"childId": "8F882E58-6980-46D8-BE6F-B585E3803724", | |
"inputs": [ | |
{ | |
"id": "d3acbdc0-a8d2-11eb-8827-056900eab788", | |
"value": "{$.AppPublished.data.attributes.id}", | |
"type": "string", | |
"structure": [] | |
} | |
], | |
"settings": [ | |
{ | |
"id": "blendr_on_error", | |
"value": "stop", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": [] | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": 357, | |
"y": 313, | |
"datasourcetype_guid": "61a87510-c7a3-11ea-95da-0fb0c241e75c", | |
"snippet_guid": "d3a8d4f0-a8d2-11eb-a81d-ffabb68491fb" | |
}, | |
{ | |
"id": "8F882E58-6980-46D8-BE6F-B585E3803724", | |
"type": "SnippetBlock", | |
"disabled": false, | |
"name": "exportAppToBase64EncodedFile", | |
"displayName": "Qlik Cloud Services - Export App To Base 64 Encoded File", | |
"comment": "", | |
"childId": "E7C1F124-0F73-4A38-8503-F173DC76571B", | |
"inputs": [ | |
{ | |
"id": "c0930c20-8645-11eb-8c79-17357db3794c", | |
"value": "{$.AppPublished.data.attributes.id}", | |
"type": "string", | |
"structure": [] | |
} | |
], | |
"settings": [ | |
{ | |
"id": "blendr_on_error", | |
"value": "stop", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": [] | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": -254, | |
"y": 320, | |
"datasourcetype_guid": "61a87510-c7a3-11ea-95da-0fb0c241e75c", | |
"snippet_guid": "c08e2d30-8645-11eb-b98e-e77d5a1bebc3" | |
}, | |
{ | |
"id": "E7C1F124-0F73-4A38-8503-F173DC76571B", | |
"type": "EndpointBlock", | |
"disabled": false, | |
"name": "getRepository", | |
"displayName": "GitHub - Get Repository", | |
"comment": "", | |
"childId": "611ECB19-5595-42C6-80FC-FC29300CADAF", | |
"inputs": [ | |
{ | |
"id": "dc875190-ab26-11ea-83bf-3785efc00715", | |
"value": "ouadie-limouni", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "dc8b9400-ab26-11ea-9f7e-7507a4b225d1", | |
"value": "{$.vRepoName}", | |
"type": "string", | |
"structure": [] | |
} | |
], | |
"settings": [ | |
{ | |
"id": "datasource", | |
"value": "997ed4d0-895b-4d8d-9f87-8f6dd7935414", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "blendr_on_error", | |
"value": "ignore", | |
"type": "select", | |
"displayValue": "Ignore - Continue Automation and ignore errors", | |
"structure": [] | |
}, | |
{ | |
"id": "cache", | |
"value": "0", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": [] | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": -313, | |
"y": 88, | |
"datasourcetype_guid": "0d87808f-27c0-11ea-921c-022e6b5ea1e2", | |
"endpoint_guid": "dc7886d0-ab26-11ea-9e31-67da0f539f05", | |
"endpoint_role": "get" | |
}, | |
{ | |
"id": "611ECB19-5595-42C6-80FC-FC29300CADAF", | |
"type": "IfElseBlock", | |
"disabled": false, | |
"name": "condition", | |
"displayName": "Condition", | |
"comment": "", | |
"childId": "06069EAA-6EAD-458C-83BF-0F9E5F9C1049", | |
"inputs": [ | |
{ | |
"id": "conditions", | |
"value": { | |
"mode": "all", | |
"conditions": [ | |
{ | |
"input1": "{$.getRepository.name}", | |
"input2": null, | |
"operator": "empty" | |
} | |
] | |
}, | |
"type": "custom", | |
"structure": [] | |
} | |
], | |
"settings": [], | |
"collapsed": [ | |
{ | |
"name": "both", | |
"isCollapsed": false | |
}, | |
{ | |
"name": "yes", | |
"isCollapsed": false | |
}, | |
{ | |
"name": "no", | |
"isCollapsed": false | |
} | |
], | |
"x": -370, | |
"y": 130, | |
"childTrueId": "A83B523F-A59A-4B4A-AD86-D89D67301D54", | |
"childFalseId": null | |
}, | |
{ | |
"id": "A83B523F-A59A-4B4A-AD86-D89D67301D54", | |
"type": "EndpointBlock", | |
"disabled": false, | |
"name": "addRepository", | |
"displayName": "GitHub - Add Repository", | |
"comment": "", | |
"childId": null, | |
"inputs": [ | |
{ | |
"id": "12b87e54-27c0-11ea-921c-022e6b5ea1e2", | |
"value": "{$.vRepoName}", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "12b87ecf-27c0-11ea-921c-022e6b5ea1e2", | |
"value": "Awesome Qlik App!", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "12b87f45-27c0-11ea-921c-022e6b5ea1e2", | |
"value": null, | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "12b87fbb-27c0-11ea-921c-022e6b5ea1e2", | |
"value": "16fbc0d8-27c0-11ea-921c-022e6b5ea1e2", | |
"type": "select", | |
"displayValue": "false", | |
"structure": [] | |
}, | |
{ | |
"id": "12b8802e-27c0-11ea-921c-022e6b5ea1e2", | |
"value": "16fbc12b-27c0-11ea-921c-022e6b5ea1e2", | |
"type": "select", | |
"displayValue": "false", | |
"structure": [] | |
}, | |
{ | |
"id": "12b880a3-27c0-11ea-921c-022e6b5ea1e2", | |
"value": "16fbc17c-27c0-11ea-921c-022e6b5ea1e2", | |
"type": "select", | |
"displayValue": "false", | |
"structure": [] | |
}, | |
{ | |
"id": "12b8811c-27c0-11ea-921c-022e6b5ea1e2", | |
"value": "false", | |
"type": "select", | |
"structure": [] | |
} | |
], | |
"settings": [ | |
{ | |
"id": "datasource", | |
"value": "997ed4d0-895b-4d8d-9f87-8f6dd7935414", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "blendr_on_error", | |
"value": "stop", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": [] | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": -337, | |
"y": 609, | |
"datasourcetype_guid": "0d87808f-27c0-11ea-921c-022e6b5ea1e2", | |
"endpoint_guid": "0eaf9e1b-27c0-11ea-921c-022e6b5ea1e2", | |
"endpoint_role": "create" | |
}, | |
{ | |
"id": "06069EAA-6EAD-458C-83BF-0F9E5F9C1049", | |
"type": "SnippetBlock", | |
"disabled": false, | |
"name": "CreateOrUpdateFileContent", | |
"displayName": "Git Hub - Create Or Update File Content", | |
"comment": "", | |
"childId": null, | |
"inputs": [ | |
{ | |
"id": "70b4a4c0-4074-11ec-a8e6-c1dc761dcfb1", | |
"value": "ouadie-limouni", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "70b5c000-4074-11ec-969e-792346f99f92", | |
"value": "{$.vRepoName}", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "70b63220-4074-11ec-b55b-7725e494603a", | |
"value": "{$.GetAppInformation.info.attributes.name}.qvf", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "b27fff40-4074-11ec-9f16-55d8428ec62c", | |
"value": "main", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "70b75130-4074-11ec-84ab-e102a3b0c185", | |
"value": "New App pushed to Github", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "70b84f80-4074-11ec-9358-b5650774d83c", | |
"value": "{$.exportAppToBase64EncodedFile}", | |
"type": "string", | |
"structure": [] | |
}, | |
{ | |
"id": "09cb4810-1675-11ef-b5b9-9d279f1efa08", | |
"value": null, | |
"type": "string", | |
"structure": {} | |
}, | |
{ | |
"id": "09cc0110-1675-11ef-ad79-4d7c92bf3de3", | |
"value": null, | |
"type": "string", | |
"structure": {} | |
} | |
], | |
"settings": [ | |
{ | |
"id": "datasource", | |
"value": "997ed4d0-895b-4d8d-9f87-8f6dd7935414", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "blendr_on_error", | |
"value": "stop", | |
"type": "select", | |
"structure": [] | |
}, | |
{ | |
"id": "automations_censor_data", | |
"value": false, | |
"type": "checkbox", | |
"structure": [] | |
} | |
], | |
"collapsed": [ | |
{ | |
"name": "loop", | |
"isCollapsed": false | |
} | |
], | |
"x": 197, | |
"y": 551, | |
"datasourcetype_guid": "0d87808f-27c0-11ea-921c-022e6b5ea1e2", | |
"snippet_guid": "70a930c0-4074-11ec-9bb6-b36e27de5d04" | |
} | |
], | |
"variables": [ | |
{ | |
"guid": "A6BB3EB4-86F4-45ED-ACED-91E004229B64", | |
"name": "vRepoName", | |
"type": "string" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment