Get Class Schedule for Current and Last Term #31904
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: 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 |