Skip to content

Commit

Permalink
ci: update render-readme action - fix #31
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Oct 19, 2023
1 parent 0317178 commit 85d5ee7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/render-README.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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[*]}
Expand Down

0 comments on commit 85d5ee7

Please sign in to comment.