Last active
August 20, 2021 07:34
-
-
Save HongKilDong/19440ab1e202e6aeea08ba5b2a396067 to your computer and use it in GitHub Desktop.
function to fetch merge build and push for nfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dbsy() {( set -e | |
git fetch && git merge --no-edit origin/$1 | |
if git diff --name-only HEAD@{0} HEAD@{1} | grep -q 'composer.lock'; then | |
php73 composer.phar install | |
else | |
php73 bin/console cache:clear | |
fi | |
php73 bin/console doctrine:migrations:migrate --no-interaction -vv | |
)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment