Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCI-860: Add MakeLatest parameter #133

Merged
merged 1 commit into from
Apr 9, 2024
Merged
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
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
Loading