Optionaly running 'composer update <package>' in case composer.lock entry wasn't update after composer_vendor_push
This commit is contained in:
parent
58b958f088
commit
2cc6dae273
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue