Check for github release assets to prevent index issue
This commit is contained in:
parent
08cfbd99c9
commit
114de9ba8a
@ -131,13 +131,9 @@ namespace Toolbox.Library
|
||||
file.SaveFileFormat();
|
||||
|
||||
if (file.FileDataStream != null)
|
||||
{
|
||||
file.FileDataStream.ExportToFile(path);
|
||||
}
|
||||
else
|
||||
{
|
||||
File.WriteAllBytes($"{path}", file.FileData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,9 @@ namespace Toolbox
|
||||
|
||||
foreach (Release latest in Releases)
|
||||
{
|
||||
if (latest.Assets?.Count == 0)
|
||||
continue;
|
||||
|
||||
Console.WriteLine(
|
||||
"The latest release is tagged at {0} and is named {1} commit {2} date {3}",
|
||||
latest.TagName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user