diff --git a/.github/workflows/daily-run.yml b/.github/workflows/daily-run.yml new file mode 100644 index 0000000..3dd1195 --- /dev/null +++ b/.github/workflows/daily-run.yml @@ -0,0 +1,27 @@ +name: Daily Main Script + +on: + schedule: + - cron: '0 5 * * *' # 8 AM IDT (UTC+3) + workflow_dispatch: # Enables manual run from GitHub UI + +jobs: + run-main: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' # Adjust to your Python version + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run main.py + run: python main.py