Skip to content

Commit

Permalink
VCI-860: Add MakeLatest parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro committed Apr 9, 2024
1 parent d6293ca commit 020f240
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/VirtoCommerce.Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ public static Solution Solution
[Parameter("True - prerelease, False - release")]
public static bool PreRelease { get; set; }

[Parameter("True (default) - make the release latest, otherwise - False")]
public static bool MakeLatest { get; set; } = true;

[Parameter("True - Pull Request")] public static bool PullRequest { get; set; }

[Parameter("Path to folder with git clones of modules repositories")]
Expand Down Expand Up @@ -1160,6 +1163,7 @@ private static async Task PublishRelease(string owner, string repo, string token
Prerelease = prerelease,
Draft = false,
Body = description,
MakeLatest = MakeLatest ? MakeLatestQualifier.True : MakeLatestQualifier.False,
TargetCommitish = GitTasks.GitCurrentBranch()
};

Expand Down

0 comments on commit 020f240

Please sign in to comment.