Skip to content

Commit 9331e6e

Browse files
committed
ci: build README.rmd only if it exists
1 parent 0c8144e commit 9331e6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/document.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
shell: Rscript {0}
4646

4747
- name: Build README.md from README.Rmd
48-
run: Rscript -e 'devtools::build_readme()'
48+
# Run only if README.Rmd is found
49+
run: Rscript -e 'if (file.exists("README.Rmd")) devtools::build_readme()'
4950

5051
- name: Commit and push changes
5152
run: |

0 commit comments

Comments
 (0)