Run Scraper File #637
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: Run Scraper File | |
on: | |
workflow_dispatch: | |
schedule: | |
# - cron: '*/30 8-18 * * 1-5' # start every 30 minutes between 8:00 and 18:00 UTC, Monday through Friday | |
- cron: '0 22 * * 1-5' # start every day at 22:00 UTC | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Run scraper | |
run: bun src/scraper.ts | |
- name: Save output to JSON | |
run: | | |
git config --global user.name 'Matvey Melishev' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -m 'feat: update data' | |
git push |