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 a39ba58 commit 2db69e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/UploadAndNotify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ 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"
$body = @{
type = "message"
Expand All @@ -50,14 +51,14 @@ jobs:
body = @(
@{
type = "TextBlock"
text = "$sas"
text = "File uploaded successfully to Azure Storage. Click the button to access it."
}
)
actions = @(
@{
type = "Action.OpenUrl"
title = "Download Azure Blob File"
url = "$sas"
url = $combinedUrl
}
)
}
Expand Down

0 comments on commit 2db69e3

Please sign in to comment.