diff --git a/.gitea/workflows/sgeupdated.yml b/.gitea/workflows/sgeupdated.yml index f498759..7f1ac51 100644 --- a/.gitea/workflows/sgeupdated.yml +++ b/.gitea/workflows/sgeupdated.yml @@ -35,7 +35,6 @@ jobs: # Detect which files changed in the last commit CHANGED_FILES=$(git diff --name-only HEAD HEAD~1) - echo "🪶 Changed files:" echo "$CHANGED_FILES" @@ -46,22 +45,22 @@ jobs: FRONTEND_CHANGED=false # Check if backend folder changed - if echo "$CHANGED_FILES" | grep -q "^sgeUpdated/sge-backend/"; then + if echo "$CHANGED_FILES" | grep -q "^sge-backend/"; then BACKEND_CHANGED=true fi # Check if frontend folder changed - if echo "$CHANGED_FILES" | grep -q "^sgeUpdated/sge-frontend/"; then + if echo "$CHANGED_FILES" | grep -q "^sge-frontend/"; then FRONTEND_CHANGED=true fi # Backend section (currently commented out) # if [ "$BACKEND_CHANGED" = true ]; then # echo "⚡ Backend changes detected." - # cd sgeUpdated/sge-backend + # cd sge-backend # echo "Running Maven build..." # /opt/apache-maven-3.9.11/bin/mvn clean install -DskipTests - # cd ../.. + # cd ../.. # back to /home/ubuntu/Bgreen # echo "Rebuilding backend Docker container..." # docker compose up -d --build bgreen-backend # else @@ -71,11 +70,11 @@ jobs: # Frontend section if [ "$FRONTEND_CHANGED" = true ]; then echo "⚡ Frontend changes detected." - cd sgeUpdated/sge-frontend + cd sge-frontend echo "Running npm build..." # npm install # npm run build - cd ../.. + cd ../.. # back to /home/ubuntu/Bgreen echo "Rebuilding frontend Docker container..." docker compose up -d --build bgreen-frontend else