Skip to content

Commit

Permalink
Update render-rmarkdown.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbarton authored Aug 6, 2024
1 parent 9185336 commit 67a8539
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/render-rmarkdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
fetch-depth: 0

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rmarkdown

- name: Render README.Rmd and Commit Results
- name: Render README.Rmd and commit results
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 67a8539

Please sign in to comment.