Skip to content

Commit

Permalink
restore fotmob match details gha
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelhabr committed Feb 15, 2023
1 parent 31bc23d commit fb6376b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/automated_fotmob_match_details.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# name: Scrape fotmob match details
#
# # At 23:31 daily.
# on:
# schedule:
# - cron: "31 23 * * *"
#
# jobs:
# update-fotmob-match-details:
# 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("devtools", "dplyr", "purrr", "tidyr", "janitor", "readr", "piggyback"))'
# - name: worldfootballR Package Installation
# run: Rscript -e 'devtools::install_github("JaseZiv/worldfootballR")'
# - name: Update match results
# run: Rscript -e 'source(file.path("R", "fotmob_match_details", "update_fotmob_match_details.R"), echo = TRUE)'
# - name: Commit
# run: |
# git config --global user.name 'JaseZiv'
# git config --global user.email '[email protected]'
# git add .
# git commit -m 'updating fotmob match details' || echo "No changes to commit"
# git push || echo "No changes to commit"
name: Scrape fotmob match details

# At 23:31 daily.
on:
schedule:
- cron: "31 23 * * *"

jobs:
update-fotmob-match-details:
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("devtools", "dplyr", "purrr", "tidyr", "janitor", "readr", "piggyback"))'
- name: worldfootballR Package Installation
run: Rscript -e 'devtools::install_github("JaseZiv/worldfootballR")'
- name: Update match results
run: Rscript -e 'source(file.path("R", "fotmob_match_details", "update_fotmob_match_details.R"), echo = TRUE)'
- name: Commit
run: |
git config --global user.name 'JaseZiv'
git config --global user.email '[email protected]'
git add .
git commit -m 'updating fotmob match details' || echo "No changes to commit"
git push || echo "No changes to commit"
1 change: 0 additions & 1 deletion R/fb_match_shooting/backfill_fb_match_shooting.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ possibly_scrape_fb_match_shooting <- possibly(
quiet = FALSE
)

seasons <- 2019:2023
backfill_fb_match_shooting <- function(country, gender = 'M', tier = '1st', group = 'big5') {

rds_path <- file.path(data_dir, sprintf('%s_%s_%s_match_shooting.rds', country, gender, tier))
Expand Down

0 comments on commit fb6376b

Please sign in to comment.