Skip to content

Commit

Permalink
Update release.php
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jul 24, 2024
1 parent 11ad5fb commit 21b1716
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/scripts/release.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,7 @@ function run( $command, &$result_code = null ) {
)
);

$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(
Expand Down

0 comments on commit 21b1716

Please sign in to comment.