mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 22:53:03 +05:30
(CI/CD): now Update Database runs on every push
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -12,11 +12,7 @@ jobs:
|
||||
- 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"
|
||||
|
||||
Reference in New Issue
Block a user