Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Scrape wallpapers

Scrape wallpapers #1

name: Scrape wallpapers
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
sparse-checkout: backend
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: poetry
- name: Install dependencies
run: poetry install
working-directory: backend
- name: Run scraper script
run: poetry run python -m src.scraper 30
working-directory: backend
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
GTE_MODEL_NAME: Supabase/gte-small