update_ncaa_scoreboard #226
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: update_ncaa_scoreboard | |
on: | |
schedule: | |
- cron: '0 5 * * *' | |
workflow_dispatch: | |
jobs: | |
update-scoreboard-db: | |
runs-on: macOS-latest | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Update current season NCAA scoreboard | |
run: Rscript get_current_season_ncaa_scoreboard.R | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Update NCAA Scoreboard" -a || echo "No changes to commit." | |
git push origin main || "No changes to commit." |