Skip to content

Mod Library Scraper #13

Mod Library Scraper

Mod Library Scraper #13

Workflow file for this run

name: Mod Library Scraper
on:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight
workflow_dispatch: # Allows you to run it manually for testing
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: sudo apt-get update
- run: sudo apt-get install -y libvips-dev
- run: npm install @supabase/supabase-js @xenova/transformers onnxruntime-node --omit=optional
- run: npm install --platform=linux --arch=x64 sharp
- run: node scripts/ingest.js
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}