Skip to content

syncing feature branch with master #27

syncing feature branch with master

syncing feature branch with master #27

name: render R Markdown files to docs
on:
pull_request:
types: [opened, edited]
paths:
- 'rmd/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-tinytex@v2
- name: Install known depedencies
run: |
Rscript -e "install.packages('rmarkdown')"
- name: Create local changes (HTML)
run: |
Rscript -e "rmarkdown::render_site('rmd/')"
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Render HTML docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}