From d096968c5c8e00814ecce9d9f23a565d65c75e86 Mon Sep 17 00:00:00 2001 From: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com> Date: Sat, 13 May 2023 20:59:49 +0200 Subject: [PATCH 1/2] Update PublishNuget.yaml --- .github/workflows/PublishNuget.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PublishNuget.yaml b/.github/workflows/PublishNuget.yaml index 2226de4742..1e26bb0748 100644 --- a/.github/workflows/PublishNuget.yaml +++ b/.github/workflows/PublishNuget.yaml @@ -6,7 +6,10 @@ on: types: [completed] branches: ['main'] -permissions: read-all +permissions: + actions: read + contents: write + packages: write defaults: run: From 42c6aa1e35cbd31c9ef7fa5af5fabf8b55a1dc60 Mon Sep 17 00:00:00 2001 From: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com> Date: Sat, 13 May 2023 21:01:57 +0200 Subject: [PATCH 2/2] Update PackNuget.ps1 --- Build/Scripts/Package/PackNuget.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Build/Scripts/Package/PackNuget.ps1 b/Build/Scripts/Package/PackNuget.ps1 index ebb4f753cb..4f0690ba39 100644 --- a/Build/Scripts/Package/PackNuget.ps1 +++ b/Build/Scripts/Package/PackNuget.ps1 @@ -18,11 +18,6 @@ $packageVersion = ($appsFolders -replace ".*-Apps-","" | Select-Object -First 1) $RepoOwner = (Get-Culture).TextInfo.ToTitleCase($RepoOwner) $packageId = "$RepoOwner-Dynamics-BusinessCentral-$RepoName" -# set first character to upper -if ($RepoOwner -eq "Microsoft") { - $RepoOwner = "DynamicsBusinessCentral" -} - Write-Host "App folder(s): $($appsFolders -join ', ')" -ForegroundColor Magenta Write-Host "Package folder: $OutputPackageFolder" -ForegroundColor Magenta Write-Host "Package ID: $packageId" -ForegroundColor Magenta @@ -49,4 +44,4 @@ Initialize-PackageFolder -OutputPackageFolder $OutputPackageFolder -AppFolders $ Test-PackageFolder -OutputPackageFolder $OutputPackageFolder -ExpectedApplications $applicationsToPackage # Pack Nuget package -nuget pack $manifestOutputPath -OutputDirectory $OutputPackageFolder \ No newline at end of file +nuget pack $manifestOutputPath -OutputDirectory $OutputPackageFolder