-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1.22 KB
/
scrape.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
40
41
42
43
44
# This is a basic workflow to help you get started with Actions
name: Hourly Scrape
# Controls when the action will run.
on:
schedule:
- cron: '*/30 * * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Scrape:
runs-on: ubuntu-latest
steps:
- name: Checkout script repo
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests croniter pytz pandas firebase_admin
- name: Run scraper
run: python ./data/main.py --info --guild --meta --pages
env:
WOW_CLIENT_ID: ${{ secrets.WOW_CLIENT_ID }}
WOW_CLIENT_SECRET: ${{ secrets.WOW_CLIENT_SECRET }}
FIREBASE_AUTH_JSON: ${{ secrets.FIREBASE_AUTH_JSON }}
- name: Trigger Vercel Redeploy
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-args: '--prod' #Optional
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required