Skip to content

Commit

Permalink
add ciskip and cph to description
Browse files Browse the repository at this point in the history
ciskip - fix update ci

fixup update action, ci skip

ci skip - update following versions

update both latest and v1.0.0 - ci skip

update ci, skip pkgdown, skip covr, skip check
  • Loading branch information
tanho63 committed Jan 16, 2022
1 parent 506cc6d commit 36e2365
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ name: R-CMD-check

jobs:
R-CMD-check:
if: "!contains(github.event.head_commit.message, 'skip check')"
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ep-update-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
name: ep-update-data

jobs:
pkgdown:
ep-update-data:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -25,10 +25,9 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: piggyback, arrow
extra-packages: piggyback, arrow, readr

- name: Run data update
with:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
Rscript -e 'source("update/ep_update.R")'
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/pkgdown-pak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: pkgdown

jobs:
pkgdown:
if: "!contains(github.event.head_commit.message, 'skip pkgdown')"
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: testcoverage

jobs:
testcoverage:
if: "!contains(github.event.head_commit.message, 'skip covr')"
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: ffopportunity
Title: Models for Fantasy Football Expected Points
Version: 0.1.0.04
Authors@R: c(
person("Joe", "Sydlowski", , "[email protected]", role = c("aut", "cre")),
person("Joe", "Sydlowski", , "[email protected]", role = c("aut", "cre", "cph")),
person("Tan", "Ho", , "[email protected]", role = "aut",
comment = c(ORCID = "0000-0001-8388-5155"))
)
Expand Down
5 changes: 3 additions & 2 deletions update/ep_update.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pkgload::load_all()

save_ep_data <- function(season, folder_path, version){

ep_object <- ffexpectedpoints::ep_build(season)
ep_object <- ffexpectedpoints::ep_build(season,version = version)

# rds
saveRDS(ep_object$ep_weekly, file.path(folder_path, glue::glue('ep_weekly_{season}.rds')))
Expand Down Expand Up @@ -40,4 +40,5 @@ update_ep <- function(season, version = "v1.0.0"){
invisible(NULL)
}

update_ep(nflreadr:::most_recent_season())
update_ep(nflreadr:::most_recent_season(), version = "latest")
update_ep(nflreadr:::most_recent_season(), version = "v1.0.0")

0 comments on commit 36e2365

Please sign in to comment.