Optionaly running 'composer update <package>' in case composer.lock entry wasn't update after composer_vendor_push

This commit is contained in:
Pavel Shevaev 2024-02-13 12:19:07 +03:00
parent 58b958f088
commit 2cc6dae273
1 changed files with 7 additions and 1 deletions

View File

@ -111,7 +111,13 @@ task('composer_vendor_push', function($args) {
git_do($repo, 'push --tags');
git_do($repo, 'rev-parse HEAD', $output);
composer_try_update_lock_entry($relpath, trim($output[0]), $new_tag);
if(composer_try_update_lock_entry($relpath, trim($output[0]), $new_tag))
return;
echo "composer.lock file was not updated, run 'composer update $relpath'?\n";
are_you_sure();
composer_run(['update', $relpath]);
});
task('composer_vendor_status', function(array $args) {