mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-20 13:25:40 +02:00
If dependencies are changed (in package.json) without updating the yarn.lock file, or if any other part of the build process starts producing unignored files, the CI build will fail, so that the problem can be corrected before the PR is merged.
6 lines
156 B
Bash
Executable file
6 lines
156 B
Bash
Executable file
GIT_STATUS=$(git status --porcelain | wc -l )
|
|
if [[ GIT_STATUS -ne 0 ]]; then
|
|
echo "${1:-Source files were modified}"
|
|
git status
|
|
exit $GIT_STATUS
|
|
fi;
|