Created
November 2, 2015 12:48
-
-
Save alherd-by/d5e50bdb4713dd23178a to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
changed_files="$(git log --name-status HEAD^..HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "composer.lock" && composer --working-dir=$GIT_WORK_TREE install | |
} | |
# `composer install` if the `composer.lock` file gets changed | |
# to update all the php dependencies | |
check_run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment