Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 26dfaaf

Browse files
committed
fix: simplify manifest generation in CI workflow
1 parent 6b500d4 commit 26dfaaf

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/test-winget.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,17 @@ jobs:
3636
Write-Host "SHA256: $hash"
3737
3838
# Update version manifest
39-
@"
40-
# yaml-language-server: `$schema=https://aka.ms/winget-manifest.version.1.6.0.schema.json
41-
39+
$versionManifest = @"
4240
PackageIdentifier: OpenCLICollective.cfl
4341
PackageVersion: 0.0.1
4442
DefaultLocale: en-US
4543
ManifestType: version
4644
ManifestVersion: 1.6.0
47-
"@ | Set-Content packaging/winget/OpenCLICollective.cfl.yaml
45+
"@
46+
Set-Content packaging/winget/OpenCLICollective.cfl.yaml $versionManifest
4847
4948
# Update locale manifest
50-
@"
51-
# yaml-language-server: `$schema=https://aka.ms/winget-manifest.defaultLocale.1.6.0.schema.json
52-
49+
$localeManifest = @"
5350
PackageIdentifier: OpenCLICollective.cfl
5451
PackageVersion: 0.0.1
5552
PackageLocale: en-US
@@ -62,13 +59,12 @@ LicenseUrl: https://github.com/open-cli-collective/confluence-cli/blob/main/LICE
6259
ShortDescription: Command-line interface for Atlassian Confluence Cloud
6360
ManifestType: defaultLocale
6461
ManifestVersion: 1.6.0
65-
"@ | Set-Content packaging/winget/OpenCLICollective.cfl.locale.en-US.yaml
62+
"@
63+
Set-Content packaging/winget/OpenCLICollective.cfl.locale.en-US.yaml $localeManifest
6664
6765
# Create installer manifest with local file URL
6866
$localUrl = "file:///$($pwd.Path -replace '\\','/')/cfl_0.0.1_windows_amd64.zip"
69-
@"
70-
# yaml-language-server: `$schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json
71-
67+
$installerManifest = @"
7268
PackageIdentifier: OpenCLICollective.cfl
7369
PackageVersion: 0.0.1
7470
InstallerType: zip
@@ -82,7 +78,8 @@ Installers:
8278
InstallerSha256: $hash
8379
ManifestType: installer
8480
ManifestVersion: 1.6.0
85-
"@ | Set-Content packaging/winget/OpenCLICollective.cfl.installer.yaml
81+
"@
82+
Set-Content packaging/winget/OpenCLICollective.cfl.installer.yaml $installerManifest
8683
8784
Write-Host "Updated manifests for testing:"
8885
Get-Content packaging/winget/OpenCLICollective.cfl.installer.yaml

0 commit comments

Comments
 (0)