-
Notifications
You must be signed in to change notification settings - Fork 25
53 lines (44 loc) · 1.2 KB
/
render-README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week, on a Sunday (0)
- cron: "0 0 * * 0"
name: render-README
jobs:
render-README:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "latest"
- uses: r-lib/actions/setup-tinytex@v2
- run: |
tlmgr --version
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
- run: |
quarto --version
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
upgrade: 'TRUE'
extra-packages: |
quarto-dev/quarto-r
r-lib/sessioninfo
- name: Render README
run: |
options(crayon.enabled = FALSE)
callr::rscript("renderer.R")
shell: Rscript {0}
- uses: stefanzweifel/git-auto-commit-action@v5