2
2
workflow_dispatch :
3
3
schedule :
4
4
# * is a special character in YAML so you have to quote this string
5
- - cron : " 0 4 * * * "
5
+ - cron : " 0 4 * * 0 " # every week
6
6
7
7
name : Update tic
8
8
@@ -23,27 +23,26 @@ jobs:
23
23
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
24
24
25
25
steps :
26
- - uses : actions/checkout@v2
26
+ - uses : actions/checkout@v3
27
27
with :
28
28
persist-credentials : false
29
29
30
- - uses : r-lib/actions/setup-r@master
30
+ - uses : r-lib/actions/setup-r@v2
31
31
with :
32
32
r-version : ${{ matrix.config.r }}
33
33
Ncpus : 4
34
34
35
35
- name : " [Stage] Dependencies"
36
36
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)"
40
39
41
40
- name : " [Stage] Update YAMLs"
42
41
run : |
43
42
Rscript -e "tic::update_yml()"
44
43
45
44
- name : " [Stage] Create Pull Request"
46
- uses : peter-evans/create-pull-request@v3
45
+ uses : peter-evans/create-pull-request@v4
47
46
with :
48
47
author : github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
49
48
token : ${{ secrets.TIC_UPDATE }}
0 commit comments