34 lines
802 B
YAML
34 lines
802 B
YAML
name: Price Check
|
|
|
|
on:
|
|
schedule:
|
|
# Runs every 6 hours
|
|
- cron: "0 0,6,12,18 * * *"
|
|
workflow_dispatch: # Allows manual triggering
|
|
|
|
jobs:
|
|
check-prices:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.10"
|
|
cache: "pip"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run price checker
|
|
env:
|
|
FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }}
|
|
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
|
|
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
|
run: python check_prices.py
|