Skip to content

USF: Update Teaching Data #243

USF: Update Teaching Data

USF: Update Teaching Data #243

# This file was generated using Kotlin DSL (.github/workflows/teaching.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'USF: Update Teaching Data'
on:
workflow_dispatch: { }
schedule:
- cron: '0 22 * * 1-5'
jobs:
get_and_commit:
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Checkout code'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Checkout data'
uses: 'actions/checkout@v4'
with:
repository: 'opletter/course-evals-data'
token: '${{ secrets.EVALS_DATA_TOKEN }}'
path: 'data'
- id: 'step-2'
name: 'Set up Java'
uses: 'actions/setup-java@v4'
with:
java-version: '17'
distribution: 'temurin'
- id: 'step-3'
name: 'Setup Gradle'
uses: 'gradle/actions/setup-gradle@v3'
with:
validate-wrappers: 'true'
- id: 'step-4'
name: 'Run'
run: './gradlew colleges:usf:run --args="--teaching ../../data/usf/generated/core/teaching-F24 ../../data/usf/generated/stats-by-prof" --scan'
- id: 'step-5'
name: 'Add & Commit'
uses: 'endbug/add-and-commit@v9'
with:
add: '-A'
cwd: 'data'
default_author: 'github_actions'
message: 'USF: Update teaching data'
pull: '--rebase --autostash'