Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs-mslearn/toolkit/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ The following section lists features and enhancements that are currently in deve

### [FinOps hubs](hubs/finops-hubs-overview.md) v13

- **Fixed**
- Fixed broken link for GitHub Copilot instructions download in [Configure AI documentation](hubs/configure-ai.md). The packaging process now creates both versioned and unversioned ZIP files for finops-hub-copilot ([#1803](https://github.com/microsoft/finops-toolkit/issues/1803)).
- **Changed**
- Enhanced [Configure scopes documentation](hubs/configure-scopes.md) to explicitly clarify that FinOps hubs support:
- Multiple Azure scopes (billing accounts, subscriptions, resource groups) in a single hub instance
Expand Down
9 changes: 9 additions & 0 deletions src/scripts/Package-Toolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ function Copy-TemplateFiles()

Write-Verbose ("Compressing $srcPath to $zip" -replace (Get-Item $relDir).FullName, '.')
Compress-Archive -Path "$srcPath/*" -DestinationPath $zip

# Create unversioned copy for specific templates that need stable download links
if ($templateName -eq "finops-hub-copilot")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not use one-off logic here. We should be consistent. Also this will break a test so that would also need to be updated.

{
$unversionedZip = Join-Path (Get-Item $relDir) "$templateName.zip"
Write-Verbose ("Creating unversioned copy: $unversionedZip" -replace (Get-Item $relDir).FullName, '.')
Copy-Item $zip $unversionedZip -Force
}

return $zip
}
}
Expand Down