fix(scraper): deduplicate identical term jobs for courseOfferings #37
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: scraper | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "apps/scraper/**" | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./apps/scraper | |
| environment: deploy-scraper | |
| env: | |
| DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| steps: | |
| - name: 💾 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 📦 Setup bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: 📦 Install dependencies | |
| run: bun install | |
| - name: 📦 Install Doppler CLI | |
| uses: dopplerhq/cli-action@v3 | |
| - name: 🔑 Sync secrets with Cloudflare Worker | |
| run: doppler secrets --json | jq -c 'with_entries(.value = .value.computed)' | bunx wrangler secret bulk | |
| - name: 🚀 Deploy to Cloudflare Workers | |
| run: bun run deploy |