Mod Library Scraper #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |