From b58ed17ca834f9a8418d7d1fd348599b5e37cc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Rio?= Date: Wed, 11 Dec 2024 11:23:23 +0700 Subject: [PATCH] [ckip ci] ci: change variable name with better definition --- .github/workflows/deploy_with_git.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_with_git.yml b/.github/workflows/deploy_with_git.yml index 667b25c..1fc7c83 100644 --- a/.github/workflows/deploy_with_git.yml +++ b/.github/workflows/deploy_with_git.yml @@ -28,13 +28,13 @@ jobs: - name: Deploy with git run: | SSH_DEPLOY_COMMAND="cd ${{secrets.SSH_DEPLOY_PATH}} && git pull && git submodule update" - HAS_PYTHON_CHANGE=true + NEED_RESTART_APP=true GIT_CHANGED_FILE=$(git show --name-only) if [[ $(echo $GIT_CHANGED_FILE | grep "\.py") == "" && $(echo $GIT_CHANGED_FILE | grep "\.sh") == "" && $(echo $GIT_CHANGED_FILE | grep "aiohttp") == "" ]]; then - HAS_PYTHON_CHANGE=false + NEED_RESTART_APP=false fi - if [[ $HAS_PYTHON_CHANGE == true ]]; then + if [[ $NEED_RESTART_APP == true ]]; then if [[ $(echo $GIT_CHANGED_FILE | grep "requirements.txt") != "" ]]; then SSH_DEPLOY_COMMAND="$SSH_DEPLOY_COMMAND && ./pip-install-binary.sh" fi