From 2b243a6934e59c798df206fa34d9669c8722e77a Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Mon, 9 Jan 2023 15:28:36 -0700 Subject: [PATCH] Remove testing code --- Source/AppScaffolding/LibationScaffolding.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/AppScaffolding/LibationScaffolding.cs b/Source/AppScaffolding/LibationScaffolding.cs index a36517e9..a44fe2d3 100644 --- a/Source/AppScaffolding/LibationScaffolding.cs +++ b/Source/AppScaffolding/LibationScaffolding.cs @@ -261,6 +261,10 @@ namespace AppScaffolding if (!Version.TryParse(latestVersionString, out var latestRelease)) return null; + // we're up to date + if (latestRelease <= BuildVersion) + return null; + // we have an update var zipUrl = zip?.BrowserDownloadUrl; @@ -296,7 +300,6 @@ namespace AppScaffolding var repoName = "Libation"; var gitHubClient = new Octokit.GitHubClient(new Octokit.ProductHeaderValue(repoName)); - gitHubClient.Credentials = new("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"); //Download the release index var bts = await gitHubClient.Repository.Content.GetRawContent(ownerAccount, repoName, ".releaseindex.json");