Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run scraper on github actions #9

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
schedule:
# Run every day at 3am ET (7am UTC)
# See: https://crontab.guru/#0_7_*_*_*
- cron: "0 7 * * *"
push:


jobs:
scrape:
runs-on: ubuntu-latest
# Only run when scheduled, or if push has "[force ci]" in its last commit message.
if: "github.event_name == 'schedule' || contains(github.event.head_commit.message, '[force ci]')"
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
with:
python-version: '3.10'

- run: pip install --user pipenv

- run: make run-code

- uses: actions/upload-artifact@v3
with:
name: url-list
path: list.csv
Loading