Skip to content

Weekly Airdrop Scraper #1

Weekly Airdrop Scraper

Weekly Airdrop Scraper #1

name: Weekly Airdrop Scraper
on:
schedule:
# Every Sunday at 02:00 UTC
- cron: "0 2 * * 0"
workflow_dispatch: # Allow manual trigger from GitHub UI
jobs:
scrape:
name: Scrape & Seed Airdrops
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run airdrop scraper
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
run: node scripts/scrape-airdrops.mjs