Skip to content

Commit

Permalink
(#26) Use milestone for license URL replacement
Browse files Browse the repository at this point in the history
This updates the relpacement used when creating a license URL
to make use of the Build Version Milestone, instead of the tag name.

This is done as in certain scenarios the tag name is an empty string and will
cause an invalid URL to be generated. This causes problems when doing a
release of the product, and thus changing to the milestone is more
appropriate.
  • Loading branch information
AdmiringWorm committed Jan 18, 2024
1 parent be912ee commit 7819246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Task("Prepare-Chocolatey-Packages")
"https://github.com/{0}/{1}/blob/{2}/LICENSE.txt",
BuildParameters.RepositoryOwner,
BuildParameters.RepositoryName,
BuildParameters.BuildProvider.Repository.Tag.IsTag ? BuildParameters.BuildProvider.Repository.Tag.Name : BuildParameters.BuildProvider.Repository.Branch
BuildParameters.BuildProvider.Repository.Tag.IsTag ? BuildParameters.Version.Milestone : BuildParameters.BuildProvider.Repository.Branch
);

var verificationText = string.Format(@"
Expand Down

0 comments on commit 7819246

Please sign in to comment.