Skip to content

Scrape FBref advanced match stats #252

Scrape FBref advanced match stats

Scrape FBref advanced match stats #252

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)'