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 8, 2024
1 parent 3b713a4 commit 0ddde3e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/UploadAndNotify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ jobs:
echo "SAS JSON: $sas"
$sas = $sas -replace '^"|"$', ''
echo "SAS JSON Quotes Removed: $sas"
echo "SAS_TOKEN=$sas" >> $GITHUB_ENV
$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
echo "combinedURL: $combinedUrl"
Expand All @@ -52,16 +50,17 @@ jobs:
version = "1.5"
body = @(
@{
type = "TextBlock"
text = "$sas"
wrap = true
maxLines = 3
type = "TextBlock"
text = "Click below to download the AppSource Package"
}
)
actions = @(
@{
type = "Action.OpenUrl"
title = "Download Azure Blob File"
url = "$sas"
url = "$combinedUrl"
}
)
}
Expand Down

0 comments on commit 0ddde3e

Please sign in to comment.