Skip to content

Merge pull request #145 from mcguinlu/dev #12

Merge pull request #145 from mcguinlu/dev

Merge pull request #145 from mcguinlu/dev #12

on:
push:
branches:
- master
- main
name: Render README
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@v1
- uses: r-lib/actions/setup-pandoc@v1
- name: Install rmarkdown, remotes, and the local package
run: |
install.packages("remotes")
remotes::install_local(".")
remotes::install_cran(c("rmarkdown","kableExtra","magrittr"))
shell: Rscript {0}
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add -f README.md man/figures/robplot*
git commit -m "Re-build README.md" || echo "No changes to commit"
git push origin master || echo "No changes to commit"