#34 Ignore pre-releases
This commit is contained in:
parent
a32cf6c6ad
commit
59b7927fc6
|
@ -17,7 +17,7 @@ namespace Discord_Media_Loader.Helper
|
||||||
var github = new GitHubClient(new ProductHeaderValue("DiscordMedialLoader"));
|
var github = new GitHubClient(new ProductHeaderValue("DiscordMedialLoader"));
|
||||||
|
|
||||||
var tag =
|
var tag =
|
||||||
(await github.Repository.Release.GetAll("Serraniel", "DiscordMediaLoader")).OrderByDescending(x => x.CreatedAt).First().TagName.Replace("v", "") ?? "";
|
(await github.Repository.Release.GetAll("Serraniel", "DiscordMediaLoader")).Where(x => x.Prerelease == false).OrderByDescending(x => x.CreatedAt).First().TagName.Replace("v", "") ?? "";
|
||||||
|
|
||||||
var version = new Version(tag);
|
var version = new Version(tag);
|
||||||
return version;
|
return version;
|
||||||
|
|
Loading…
Reference in a new issue