From 0e85dba16ed6850d0877a829a5d8bddc0356fffd Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Sun, 3 Dec 2023 21:13:53 +0530 Subject: [PATCH] (CI/CD): now Update Database runs on every push --- .github/workflows/main.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b77fee9..3ba6f64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,12 +11,8 @@ jobs: steps: - name: 🚚 Get latest code uses: actions/checkout@v3 - - - name: Debug Event Payload - run: echo "${{ toJson(github.event) }}" - name: 📦 Update Database - if: github.event_name == 'push' && github.event_path == 'neosubhamoy.sql' run: | mysql -h ${{ secrets.DB_HOST }} --port 3306 -u${{ secrets.DB_USERNAME }} -p${{ secrets.DB_PASSWORD }} -D${{ secrets.DB_NAME }} -e "source drop_script.sql" mysql -h ${{ secrets.DB_HOST }} --port 3306 -u${{ secrets.DB_USERNAME }} -p${{ secrets.DB_PASSWORD }} -D${{ secrets.DB_NAME }} -e "source neosubhamoy.sql"