Skip to content

bugfix for error flagged by GHA on setup-r@v1 -> v2 #18

bugfix for error flagged by GHA on setup-r@v1 -> v2

bugfix for error flagged by GHA on setup-r@v1 -> v2 #18

name: render readme
# Controls when the action will run
on:
push:
branches: master
name: Render README

Check failure on line 8 in .github/workflows/render-readme.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/render-readme.yaml

Invalid workflow file

You have an error in your yaml syntax on line 8
jobs:
render:
# The type of runner that the job will run on
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v1
# install packages needed
- name: install required packages
run: Rscript -e 'install.packages(c("rmarkdown"))'
# Render READEME.md using rmarkdown
- name: render README
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "md_document")'
- name: commit rendered README
run: |
git add README.md man/figures/README-*
git commit -m "Re-build README.md" || echo "No changes to commit"
git push origin master || echo "No changes to commit"