-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 1.01 KB
/
get_class_schedule.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Get Class Schedule for Current and Last Term
on:
schedule:
- cron: "*/15 * * * *"
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checking out repo
uses: actions/checkout@v3
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Installing package list
run: apt list --installed
- name: Removing previous chrome instances on runner
run: sudo apt purge google-chrome-stable
# Need to fetch reqs if needed
- name: Installing all necessary packages
run: pip install -r scripts/requirements.txt
- name: Running the Python script
env:
MONGO_WRITER_URL: ${{ secrets.MONGO_WRITER_URL }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_COLLECTION_COURSES: ${{ secrets.DB_COLLECTION_COURSES }}
DB_COLLECTION_COURSE_DESCRIPTIONS: ${{ secrets.DB_COLLECTION_COURSE_DESCRIPTIONS }}
run: python scripts/get_class_schedule.py