From a69994a48dad9fa64ad298467898d58da3eedd33 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 24 Aug 2018 00:30:04 +0200 Subject: [PATCH] Skip releases that lack a downloadable asset --- php/commands/src/CLI_Command.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/commands/src/CLI_Command.php b/php/commands/src/CLI_Command.php index e69f4a4e5..424cb4111 100644 --- a/php/commands/src/CLI_Command.php +++ b/php/commands/src/CLI_Command.php @@ -407,6 +407,10 @@ private function get_updates( $assoc_args ) { continue; } + if ( ! isset( $release->assets[0]->browser_download_url ) ) { + continue; + } + if ( ! empty( $updates[ $update_type ] ) && ! Comparator::greaterThan( $release_version, $updates[ $update_type ]['version'] ) ) { continue; }