Render README #1452
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |