-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.07 KB
/
build.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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: build
jobs:
render:
name: build
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2 # This is important to set for `git diff-tree` to work below
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: 'https://fawda123.r-universe.dev'
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rmarkdown
packages:
WtRegDO
any::devtools
- name: Render index
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add -A
git commit -m 'Re-build Rmarkdown files' || echo "No changes to commit"
git push origin || echo "No changes to commit"