Weekly Airdrop Scraper #1
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: 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 |