Skip to content

Fetch Grades

Fetch Grades #2

Workflow file for this run

name: Fetch Grades
on:
workflow_dispatch:
jobs:
fetch-grades:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://github.com/raw/Homebrew/install/HEAD/install.sh)"
- name: Install chromedriver
run: |
brew install chromedriver
- name: Install Requirements
run: |
python -m pip install -r requirements.txt
- name: Run Script
run: |
python basic.py
- name: Add Files
run: |
git add Submissions/*.txt
- name: Commit changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "Add new files"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}