22 workflow_dispatch :
33 schedule :
44 # * is a special character in YAML so you have to quote this string
5- - cron : " 0 4 * * * "
5+ - cron : " 0 4 * * 0 " # every week
66
77name : Update tic
88
@@ -23,27 +23,26 @@ jobs:
2323 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
2424
2525 steps :
26- - uses : actions/checkout@v2
26+ - uses : actions/checkout@v3
2727 with :
2828 persist-credentials : false
2929
30- - uses : r-lib/actions/setup-r@master
30+ - uses : r-lib/actions/setup-r@v2
3131 with :
3232 r-version : ${{ matrix.config.r }}
3333 Ncpus : 4
3434
3535 - name : " [Stage] Dependencies"
3636 run : |
37- sudo apt install libcurl4-openssl-dev libsodium-dev libharfbuzz-dev libfribidi-dev libgit2-dev
38- Rscript -e "if (!requireNamespace('remotes')) install.packages('remotes', type = 'source')"
39- Rscript -e "remotes::install_github('ropensci/tic', dependencies = TRUE)"
37+ Rscript -e "install.packages('pak', repos = 'https://r-lib.github.io/p/pak/stable')"
38+ Rscript -e "if (grepl('Ubuntu', Sys.info()[['version']])) {options(repos = c(CRAN = sprintf('https://packagemanager.rstudio.com/all/__linux__/%s/latest', system('lsb_release -cs', intern = TRUE))))}; pak::pkg_install('ropensci/tic', dependencies = TRUE)"
4039
4140 - name : " [Stage] Update YAMLs"
4241 run : |
4342 Rscript -e "tic::update_yml()"
4443
4544 - name : " [Stage] Create Pull Request"
46- uses : peter-evans/create-pull-request@v3
45+ uses : peter-evans/create-pull-request@v4
4746 with :
4847 author : github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
4948 token : ${{ secrets.TIC_UPDATE }}
0 commit comments