Automated Mandi Synchronization Engine #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Automated Mandi Synchronization Engine | |
| on: | |
| schedule: | |
| - cron: '0 15 * * *' # Triggers automatically daily at exactly 15:00 UTC (8:30 PM IST) | |
| workflow_dispatch: # Allows you to click a button in GitHub to force run it instantly | |
| jobs: | |
| execute-pipeline: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Codebase Clone Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Enterprise Python Runtime Environment | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install System Architecture Requirements Modules | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r backend/requirements.txt | |
| - name: Run Extraction Matrix Pipeline Tasks | |
| env: | |
| GOVT_API_KEY: ${{ secrets.GOVT_API_KEY }} | |
| DB_CONNECTION_STRING: ${{ secrets.DB_CONNECTION_STRING }} | |
| run: python backend/mandi_pipeline_sync.py |