mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
powerautomate sends 202 when accepting content; MS doesn't support 1.5 via powerautomate (yet)
This commit is contained in:
parent
27c7c5565a
commit
2bd5742b17
@ -352,7 +352,7 @@ func (t *TaskRunner) sendMicrosoftTeamsAlert() {
|
||||
|
||||
if err != nil {
|
||||
t.Log("Can't send microsoft teams alert! Error: " + err.Error())
|
||||
} else if resp.StatusCode != 200 {
|
||||
} else if resp.StatusCode != 200 && resp.StatusCode != 202 {
|
||||
t.Log("Can't send microsoft teams alert! Response code: " + strconv.Itoa(resp.StatusCode))
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
"content": {
|
||||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
||||
"type": "AdaptiveCard",
|
||||
"version": "1.5",
|
||||
"version": "1.4",
|
||||
"body": [
|
||||
{
|
||||
"type": "TextBlock",
|
||||
|
Loading…
Reference in New Issue
Block a user