From 21b17166eda55e7ab0128a79dfb0b3cde8d46903 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:49:52 +0200 Subject: [PATCH] Update release.php --- .github/scripts/release.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/scripts/release.php b/.github/scripts/release.php index 1804b7f..c5ccdae 100644 --- a/.github/scripts/release.php +++ b/.github/scripts/release.php @@ -42,26 +42,7 @@ $data = run( ) ); -$result = json_decode( $data ); - -if ( ! is_object( $result ) ) { - throw new Exception( - sprintf( - 'Unknow response from: %s.', - $url - ) - ); - - exit( 1 ); -} - -if ( ! property_exists( $result, 'version' ) ) { - echo 'No version'; - - exit( 1 ); -} - -$version = $result->version; +$version = $data; line( sprintf(