Skip to content

Commit

Permalink
Update UploadAndNotify.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tshanep committed Feb 7, 2024
1 parent b13aa15 commit 64eb392
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/UploadAndNotify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
$blobUrl = az storage blob url --account-name poweraccelerators --container-name accelerators --name simplefile.txt --account-key ${{ secrets.AZURE_STORAGE_KEY }} --output tsv
echo "Blob URL: $blobUrl"
echo "BLOB_URL=$blobUrl" >> $GITHUB_ENV
$combinedUrl = $blobUrl + "?" + $sas
$encodedSas = [System.Net.WebUtility]::UrlEncode($sas)
$combinedUrl = $blobUrl + "?" + $encodedSas
echo "combinedURL: $combinedUrl"
$body = @{
Expand Down Expand Up @@ -67,5 +68,8 @@ 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

0 comments on commit 64eb392

Please sign in to comment.