mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-21 21:46:03 +00:00
67 lines
2.6 KiB
JSON
67 lines
2.6 KiB
JSON
{
|
|
"type": "message",
|
|
"attachments": [
|
|
{
|
|
"contentType": "application/vnd.microsoft.card.adaptive",
|
|
"contentUrl": null,
|
|
"content": {
|
|
"\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
|
"msteams": {
|
|
"width": "Full"
|
|
},
|
|
"type": "AdaptiveCard",
|
|
"version": "1.2",
|
|
"body": [
|
|
{
|
|
"type": "TextBlock",
|
|
"size": "Large",
|
|
"weight": "Bolder",
|
|
"color": "<% if (success) { %>Good<% } else { %>Attention<%} %>",
|
|
"text": "nf-core/taxprofiler v${version} - ${runName}",
|
|
"wrap": true
|
|
},
|
|
{
|
|
"type": "TextBlock",
|
|
"spacing": "None",
|
|
"text": "Completed at ${dateComplete} (duration: ${duration})",
|
|
"isSubtle": true,
|
|
"wrap": true
|
|
},
|
|
{
|
|
"type": "TextBlock",
|
|
"text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors. The full error message was: ${errorReport}.<% } %>",
|
|
"wrap": true
|
|
},
|
|
{
|
|
"type": "TextBlock",
|
|
"text": "The command used to launch the workflow was as follows:",
|
|
"wrap": true
|
|
},
|
|
{
|
|
"type": "TextBlock",
|
|
"text": "${commandLine}",
|
|
"isSubtle": true,
|
|
"wrap": true
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "Action.ShowCard",
|
|
"title": "Pipeline Configuration",
|
|
"card": {
|
|
"type": "AdaptiveCard",
|
|
"\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
|
"body": [
|
|
{
|
|
"type": "FactSet",
|
|
"facts": [<% out << summary.collect{ k,v -> "{\"title\": \"$k\", \"value\" : \"$v\"}"}.join(",\n") %>
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|