Fix check command bugs

This commit is contained in:
Ed
2018-12-17 18:41:44 -05:00
parent 00a9fbf8e1
commit c7900456b4
2 changed files with 12 additions and 3 deletions

View File

@@ -80,7 +80,11 @@ func (c *CheckCommand) Run(request CheckRequest) ([]Version, error) {
}
if latestTag.Name == request.Version.Tag {
return []Version{}, nil
// GitHub release resource returns empty array:
// https://github.com/concourse/github-release-resource/blob/master/check_command.go#L87
// but documentation says to return current item?
// https://concourse-ci.org/implementing-resources.html#section_resource-check
return []Version{Version{Tag: latestTag.Name}}, nil
}
upToLatest := false