Tried adjusting git status

This commit is contained in:
2022-07-11 13:38:45 +02:00
parent ecc49a0807
commit 24f2748d1e

View File

@@ -20,20 +20,15 @@ EOF
git config --global user.name "GitHub Action"
}
# Checks if any files are changed
_git_changed() {
[[ -n "$(git status -s)" ]]
}
# PROGRAM
echo "Installing dependencies..."
pip3 install --no-cache-dir -r $INPUT_PIP_PATH
echo "Creating data model..."
cd $INPUT_PROJECT_PATH
python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH
# To keep runtime good, just continue if something was changed
if _git_changed;
if [[ `$(git status -s)` ]];
then
# Calling method to configure the git environemnt
_git_setup