Download .github/workflows/daily-planner.yml from SolarWine/api: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/spaces/SolarWine/api/resolve/main/.github/workflows/daily-planner.yml
- Command line
-
hf download hf://spaces/SolarWine/api/.github/workflows/daily-planner.yml
-
curl -L -o daily-planner.yml https://huggingface.co/spaces/SolarWine/api/resolve/main/.github/workflows/daily-planner.yml
971 Bytes
| name: Day-Ahead Planner | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" # 02:00 UTC = 05:00 IST | |
| workflow_dispatch: | |
| jobs: | |
| plan: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt -r backend/requirements.txt | |
| - name: Run day-ahead planner | |
| run: python -m backend.workers.daily_planner | |
| env: | |
| THINGSBOARD_HOST: ${{ secrets.THINGSBOARD_HOST }} | |
| THINGSBOARD_USERNAME: ${{ secrets.THINGSBOARD_USERNAME }} | |
| THINGSBOARD_PASSWORD: ${{ secrets.THINGSBOARD_PASSWORD }} | |
| IMS_API_TOKEN: ${{ secrets.IMS_API_TOKEN }} | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }} | |
| UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }} | |