Skip to content

Render README

Render README #2002

Workflow file for this run

on:
push:
paths:
- README.qmd
schedule:
- cron: "0 0 * * *"
workflow_dispatch: # Allows you to trigger it manually for testing
name: Render README
jobs:
render:
name: Render README
runs-on: ubuntu-latest # Switched to Ubuntu for faster R package installation
permissions:
contents: write # Required to allow the action to push changes
steps:
- uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true # Uses pre-compiled binaries for faster install
- name: Install dependencies
# chillR, lunar, and ggplot2 are required by your script
run: |
install.packages(c("rmarkdown", "lunar", "ggplot2"))
shell: Rscript {0}
- name: Render README
run: quarto render README.qmd
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
# Quarto saves images in the _files folder. We add the markdown and the folder.
git add README.md README_files/
git commit -m 'Re-build README.qmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"