-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 988 Bytes
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Scraper Worker
on:
schedule:
- cron: '30 15 * * *' # Runs every day at 11:30 AM UTC
jobs:
scrape:
runs-on: ubuntu-latest
env:
VECTOR_DB_API_KEY: ${{ secrets.VECTOR_DB_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
SERVICE_EMAIL: ${{ secrets.SERVICE_EMAIL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
SHEET_ID: ${{ secrets.SHEET_ID }}
MONGODB_URI : ${{secrets.MONGODB_URI}}
HUGGING_FACE_API_TOKEN : ${{secrets.HUGGING_FACE_API_TOKEN}}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Change directory to 'packages/scraper'
run: cd packages/scraper
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Install playwright deps
run: npx playwright install --with-deps chromium
- name: Run Scraper
run: npm run start:scraper