Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Render README

Render README #864

name: Render README
on:
schedule:
- cron: '09 02 * * *'
jobs:
render:
name: Render README
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install CRAN packages
run: Rscript -e 'install.packages(c("dplyr", "ggplot2", "knitr", "lubridate", "remotes", "rmarkdown", "stringr", "rvest"))'
- name: Install GitHub packages
run: Rscript -e 'remotes::install_github("hadley/emo")'
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Commit results
run: |
git config --local user.email "actions@github.com"
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"