Skip to content

Commit

Permalink
Fixed #2074 and #2079
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Mar 16, 2018
1 parent 47f6697 commit 94c713b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ombi.Schedule/Processor/ChangeLogProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public async Task<UpdateModel> Process(string branch)
Downloads = new List<Downloads>()
};

var releaseTag = latestRelease.InnerText.Substring(0, 6);
if (masterBranch)
{
var releaseTag = latestRelease.InnerText.Substring(0, 9);
await GetGitubRelease(release, releaseTag);
}
else
Expand Down Expand Up @@ -147,7 +147,7 @@ private async Task GetAppVeyorRelease(Release release, string branch)
var builds = await _api.Request<AppveyorBranchResult>(request);
var jobId = builds.build.jobs.FirstOrDefault()?.jobId ?? string.Empty;

if (builds.build.finished == DateTime.MinValue)
if (builds.build.finished == DateTime.MinValue || builds.build.status.Equals("failed"))
{
return;
}
Expand Down

0 comments on commit 94c713b

Please sign in to comment.