From d778c1420c9c558defa0ef6e4fb5852d251f91d1 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Sat, 8 Jul 2023 16:45:55 +0200 Subject: [PATCH] Improve release script. --- .github/scripts/release.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/scripts/release.php b/.github/scripts/release.php index 5fcbd72..74bfc44 100644 --- a/.github/scripts/release.php +++ b/.github/scripts/release.php @@ -128,8 +128,7 @@ if ( ! property_exists( $result, $product_id ) ) { $update_data = $result->{$product_id}; $version = $update_data->version; - -$url = $update_data->package; +$zip_url = $update_data->package; line( sprintf( @@ -141,7 +140,7 @@ line( line( sprintf( 'WooCommerce Subscriptions ZIP URL: %s', - $url + $zip_url ) ); @@ -174,7 +173,7 @@ line( '::group::Download WooCommerce Subscriptions' ); run( sprintf( 'curl %s --output %s', - escapeshellarg( $result->url ), + escapeshellarg( $zip_url ), $zip_file ) ); @@ -216,7 +215,7 @@ run( ); line( '::endgroup::' ); - +exit; /** * Git user. *