Skip to content

Commit

Permalink
Create automated_update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tony11306 authored May 1, 2024
1 parent 39c4ef0 commit e96d965
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/automated_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Scheduled Crawler
on:
schedule:
- cron: "0 0 */3 * *"

jobs:
run_crawler:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run crawler script
run: python SchoolSystemModel/crawler_script.py

- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "tony11306"
git add .
git commit -m "Automated update crawler data"
git push origin main

0 comments on commit e96d965

Please sign in to comment.