diff --git a/.github/workflows/render-README.yaml b/.github/workflows/render-README.yaml index a64ce32..8ca33c4 100644 --- a/.github/workflows/render-README.yaml +++ b/.github/workflows/render-README.yaml @@ -1,5 +1,4 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/master/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +# Workflow derived from https://github.com/r-lib/actions/blob/v2-branch/examples/render-rmarkdown.yaml on: push: @@ -24,7 +23,7 @@ jobs: - name: Install Rmarkdown run: Rscript -e 'install.packages("rmarkdown")' - - name: Render Rmarkdown files + - name: Render README run: | RMD_PATH=($(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^README.Rmd$')) Rscript -e 'for (f in commandArgs(TRUE)) if (file.exists(f)) rmarkdown::render(f)' ${RMD_PATH[*]}