Skip to content

Commit

Permalink
[ckip ci] ci: change variable name with better definition
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Dec 11, 2024
1 parent b8189ff commit b58ed17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_with_git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b58ed17

Please sign in to comment.