Skip to content

Commit

Permalink
Refactor Update-WingetPackage function to use consistent capitalizati…
Browse files Browse the repository at this point in the history
…on for the 'With' parameter
  • Loading branch information
Utesgui authored May 11, 2024
1 parent 5537ebf commit 49b7297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-via-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
matrix:
include:
- PackageName: "MongoDB.Server"
WebsiteURL: "https://www.mongodb.com/try/download/community"
WebsiteURL: "https://www.mongodb.com/try/download/community"
With: WinGetCreate
- PackageName: "MongoDB.MongoDBCLI"
WebsiteURL: "https://www.mongodb.com/try/download/tools"
With: WinGetCreate
Expand Down
2 changes: 1 addition & 1 deletion Scripts/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function Update-WingetPackage {
param(
[Parameter(Mandatory = $true)] [string] $WebsiteURL,
[Parameter(Mandatory = $false)] [string] $wingetPackage = ${Env:PackageName},
[Parameter(Mandatory = $false)] [ValidateSet("Komac", "WinGetCreate")] [string] $With = "Komac",
[Parameter(Mandatory = $false)][AllowEmptyString()] [ValidateSet("Komac", "WinGetCreate")] [string] $With = "Komac",
[Parameter(Mandatory = $false)] [string] $gitToken
)
if ($null -eq $gitToken) {
Expand Down

0 comments on commit 49b7297

Please sign in to comment.