Improve release script.
This commit is contained in:
parent
54ec0804c3
commit
d778c1420c
|
|
@ -128,8 +128,7 @@ if ( ! property_exists( $result, $product_id ) ) {
|
||||||
$update_data = $result->{$product_id};
|
$update_data = $result->{$product_id};
|
||||||
|
|
||||||
$version = $update_data->version;
|
$version = $update_data->version;
|
||||||
|
$zip_url = $update_data->package;
|
||||||
$url = $update_data->package;
|
|
||||||
|
|
||||||
line(
|
line(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
|
@ -141,7 +140,7 @@ line(
|
||||||
line(
|
line(
|
||||||
sprintf(
|
sprintf(
|
||||||
'WooCommerce Subscriptions ZIP URL: %s',
|
'WooCommerce Subscriptions ZIP URL: %s',
|
||||||
$url
|
$zip_url
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -174,7 +173,7 @@ line( '::group::Download WooCommerce Subscriptions' );
|
||||||
run(
|
run(
|
||||||
sprintf(
|
sprintf(
|
||||||
'curl %s --output %s',
|
'curl %s --output %s',
|
||||||
escapeshellarg( $result->url ),
|
escapeshellarg( $zip_url ),
|
||||||
$zip_file
|
$zip_file
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
@ -216,7 +215,7 @@ run(
|
||||||
);
|
);
|
||||||
|
|
||||||
line( '::endgroup::' );
|
line( '::endgroup::' );
|
||||||
|
exit;
|
||||||
/**
|
/**
|
||||||
* Git user.
|
* Git user.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue