mirror of
https://github.com/libretro/blastem.git
synced 2026-11-07 10:15:58 -10:00
Fix and update JSON payload for webhook in build scripts
This commit is contained in:
1 parent
321db7dd21
commit
7193ef551b
2 files changed
+22
-10
No files matched your search
+11
-5
@@ -21,9 +21,9 @@ if [ $result -ne 0 ]; then
|
||||
{
|
||||
"title": "Build $name failed!",
|
||||
"type": "rich",
|
||||
"description": "Build falied with return code $result stopping $CONTAINER_NAME"
|
||||
"description": "Build falied with return code $result stopping $CONTAINER_NAME",
|
||||
"timestamp": "$curdate",
|
||||
"color": 16711680,
|
||||
"color": 16711680
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -43,12 +43,18 @@ curl -d'@-' -H 'Content-Type: application/json' "$WEBHOOKURL" <<WEBHOOKEOF
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": "New build of $name succeeded!",
|
||||
"title": "$artifact",
|
||||
"type": "rich",
|
||||
"url": "https://www.retrodev.com/blastem/nightlies/$artifact"
|
||||
"description": "Version: $version"
|
||||
"url": "https://www.retrodev.com/blastem/nightlies/$artifact",
|
||||
"description": "New build of $name succeeded!",
|
||||
"timestamp": "$curdate",
|
||||
"color": 65280,
|
||||
"fields": [
|
||||
{
|
||||
"name": "Version",
|
||||
"value": "$version"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -19,9 +19,9 @@ if [ $result -ne 0 ]; then
|
||||
{
|
||||
"title": "Build $name failed!",
|
||||
"type": "rich",
|
||||
"description": "Build falied with return code $result"
|
||||
"description": "Build falied with return code $result",
|
||||
"timestamp": "$curdate",
|
||||
"color": 16711680,
|
||||
"color": 16711680
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -38,12 +38,18 @@ curl -d'@-' -H 'Content-Type: application/json' "$WEBHOOKURL" <<WEBHOOKEOF
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": "New build of $name succeeded!",
|
||||
"title": "$artifact",
|
||||
"type": "rich",
|
||||
"url": "https://www.retrodev.com/blastem/nightlies/$artifact"
|
||||
"description": "Version: $version"
|
||||
"url": "https://www.retrodev.com/blastem/nightlies/$artifact",
|
||||
"description": "New build of $name succeeded!",
|
||||
"timestamp": "$curdate",
|
||||
"color": 65280,
|
||||
"fields": [
|
||||
{
|
||||
"name": "Version",
|
||||
"value": "$version"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user