Skip to content

Commit

Permalink
run cronjob 10
Browse files Browse the repository at this point in the history
  • Loading branch information
yachty66 committed Jun 26, 2024
1 parent 4c43325 commit c3ffbe2
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/daily_scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,31 @@ name: Daily Resident Advisor Scrape

on:
schedule:
# This will run every day at 10 PM PST (6 AM UTC)
- cron: '0 10 * * *'
workflow_dispatch: # Allows manual triggering
- cron: "0 18 * * *"
workflow_dispatch:

jobs:
scrape:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_resident_advisor.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_resident_advisor.txt
- name: Run scraper
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
PROXY_USERNAME: ${{ secrets.PROXY_USERNAME }}
PROXY_PASSWORD: ${{ secrets.PROXY_PASSWORD }}
PROXY_URL: ${{ secrets.PROXY_URL }}
run: python resident_advisor.py
- name: Run scraper
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
PROXY_USERNAME: ${{ secrets.PROXY_USERNAME }}
PROXY_PASSWORD: ${{ secrets.PROXY_PASSWORD }}
PROXY_URL: ${{ secrets.PROXY_URL }}
run: python resident_advisor.py

0 comments on commit c3ffbe2

Please sign in to comment.