Fix check command bugs
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user