Skip to content

Render README

Render README #1472

Workflow file for this run

on:
push:
paths:
- README.Rmd
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 0 * * *"
name: Render README
jobs:
render:
name: Render README
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages("rmarkdown")'
- name: Install dependencies
run: Rscript -e 'install.packages(c("chillR", "lunar", "ggplot2"), dependencies = TRUE)'
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Commit results
run: |
git commit README.md calendar_plot-1.png -m 'Re-build README.Rmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"