From 24f2748d1e907f38d1d529abf0b2a4aa60a97be5 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 11 Jul 2022 13:38:45 +0200 Subject: [PATCH] Tried adjusting git status --- entrypoint.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 71c8e5e..b01c5c6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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