Skip to content

Commit

Permalink
Update UploadAndNotify.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tshanep authored Feb 7, 2024
1 parent e48ba06 commit 4a154d6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/UploadAndNotify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,25 @@ jobs:
content = @{
'$schema' = "http://adaptivecards.io/schemas/adaptive-card.json"
type = "AdaptiveCard"
version = "1.2"
version = "1.6"
body = @(
@{
type = "TextBlock"
text = "$combinedUrl"
text = $combinedUrl
wrap = true
}
)
actions = @(
@{
type = "Action.OpenUrl"
title = "Download Azure Blob File"
url = "$combinedUrl"
url = $combinedUrl
}
)
}
}
)
} | ConvertTo-Json -Depth 10
$body | ConvertTo-Json -Depth 10 | Out-File -FilePath "adaptivecard.json"
Get-Content "adaptivecard.json"
curl -H "Content-Type: application/json" -d "$body" ${{ secrets.TEAMS_WEBHOOK_URL }}
shell: pwsh

0 comments on commit 4a154d6

Please sign in to comment.