From 0afab8cd9bb9d5782ed96cfae26af98411345b73 Mon Sep 17 00:00:00 2001 From: freddydk Date: Wed, 5 Jun 2024 05:48:29 +0200 Subject: [PATCH] replace --- Actions/Deliver/Deliver.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Actions/Deliver/Deliver.ps1 b/Actions/Deliver/Deliver.ps1 index 4aab8f5e1..fa9c7fe55 100644 --- a/Actions/Deliver/Deliver.ps1 +++ b/Actions/Deliver/Deliver.ps1 @@ -353,8 +353,8 @@ try { if (!($storageAccountCredentials.PSObject.Properties.Name -eq 'ErrorAction')) { $storageAccountCredentials | Add-Member -MemberType NoteProperty -Name 'ErrorAction' -Value 'Warning' } - $storageContainerName = $storageAccountCredentials.containerName - $storageBlobName = $storageAccountCredentials.blobName + $storageContainerName = $storageAccountCredentials.ContainerName.ToLowerInvariant().replace('{project}',$projectName).replace('{branch}',$refname).ToLowerInvariant() + $storageBlobName = $storageAccountCredentials.BlobName.ToLowerInvariant() } catch { throw "StorageContext secret is malformed. Needs to be formatted as Json, containing StorageAccountName, containerName, blobName.`nError was: $($_.Exception.Message)"