Skip to content

Commit

Permalink
Update update-tic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv authored Oct 25, 2022
1 parent c263a73 commit d87b07e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/update-tic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 4 * * *"
- cron: "0 4 * * 0" # every week

name: Update tic

Expand All @@ -23,27 +23,26 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
Ncpus: 4

- name: "[Stage] Dependencies"
env:
RSPM: https://packagemanager.rstudio.com/all/__linux__/focal/latest
run: |
sudo apt install libcurl4-openssl-dev libsodium-dev libharfbuzz-dev libfribidi-dev libgit2-dev
Rscript -e "if (!requireNamespace('remotes')) install.packages('remotes', type = 'source')"
Rscript -e "remotes::install_github('ropensci/tic', dependencies = TRUE)"
Rscript -e "install.packages('pak', repos = 'https://r-lib.github.io/p/pak/stable')"
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)"
- name: "[Stage] Update YAMLs"
run: |
Rscript -e "tic::update_yml()"
Rscript -e "tic::update_yml()"
- name: "[Stage] Create Pull Request"
uses: peter-evans/create-pull-request@main
uses: peter-evans/create-pull-request@v4
with:
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
token: ${{ secrets.TIC_UPDATE }}
Expand Down

0 comments on commit d87b07e

Please sign in to comment.