diff --git a/.github/workflows/UploadAndNotify.yml b/.github/workflows/UploadAndNotify.yml index 092950ad..36613d10 100644 --- a/.github/workflows/UploadAndNotify.yml +++ b/.github/workflows/UploadAndNotify.yml @@ -49,11 +49,11 @@ 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 } ) @@ -61,7 +61,7 @@ jobs: @{ type = "Action.OpenUrl" title = "Download Azure Blob File" - url = "$combinedUrl" + url = $combinedUrl } ) } @@ -69,8 +69,5 @@ jobs: ) } | 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