1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(CI/CD): now Update Database runs on every push

This commit is contained in:
2023-12-03 21:13:53 +05:30
parent 7b1b1d895f
commit 0e85dba16e

View File

@@ -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"