-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 972 Bytes
/
Copy pathmandi_scheduler.yml
File metadata and controls
30 lines (25 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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