Ticket scraping initiated by john-s-lin #2133
This file contains 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: Scheduled Ticket Scraper | |
run-name: Ticket scraping initiated by ${{ github.actor }} | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- name: Install dependencies | |
run: | | |
uv sync | |
uv pip sync pyproject.toml | |
- name: Generate ticket price info from crawler | |
env: | |
WEBHOOK_URL: ${{ secrets.WEBHOOK }} | |
run: | | |
uv run src/main.py |