Scrape FBref advanced match stats #249
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: Scrape FBref advanced match stats | |
on: | |
schedule: | |
- cron: "13 10,22 * * *" | |
workflow_dispatch: | |
jobs: | |
update-fb-advanced-match-stats: | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Package Installation | |
run: Rscript -e 'install.packages(c("remotes", "dplyr", "purrr", "tidyr", "tibble", "readr", "piggyback"))' | |
- name: worldfootballR Package Installation | |
run: Rscript -e 'remotes::install_github("JaseZiv/worldfootballR")' | |
- name: Update match stats | |
run: Rscript -e 'source(file.path("R", "fb_advanced_match_stats", "update_fb_advanced_match_stats.R"), echo = TRUE)' |