-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.19 KB
/
build_profile.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
workflow_dispatch:
schedule:
- cron: '0 0 * * WED'
name: Render README
jobs:
render-rmarkdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install cURL Headers
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-renv@v2
- name: Render README
run: rmarkdown::render("README.Rmd", "github_document")
shell: Rscript {0}
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git commit README.md README-files/ \
-m 'Re-build README.Rmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"