fix(ncs-promotion): update headers format in Discord webhook payload
This commit is contained in:
@@ -89,7 +89,7 @@ spec:
|
|||||||
- name: "Content-Type"
|
- name: "Content-Type"
|
||||||
value: "application/json"
|
value: "application/json"
|
||||||
body: |
|
body: |
|
||||||
{
|
${{ quote({
|
||||||
"embeds": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
"title": "✅ Promotion Succeeded",
|
"title": "✅ Promotion Succeeded",
|
||||||
@@ -114,7 +114,7 @@ spec:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}) }}
|
||||||
- uses: http
|
- uses: http
|
||||||
if: "${{ failure() }}"
|
if: "${{ failure() }}"
|
||||||
as: notify-failure
|
as: notify-failure
|
||||||
@@ -125,7 +125,7 @@ spec:
|
|||||||
- name: "Content-Type"
|
- name: "Content-Type"
|
||||||
value: "application/json"
|
value: "application/json"
|
||||||
body: |
|
body: |
|
||||||
{
|
${{ quote({
|
||||||
"embeds": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
"title": "❌ Promotion Failed",
|
"title": "❌ Promotion Failed",
|
||||||
@@ -150,4 +150,4 @@ spec:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user