| @@ -56,19 +56,19 @@ jobs: | |||
| - name: Document | |||
| run: | | |||
| Rscript -e 'roxygen2::roxygenise()' | |||
| git add man/\* NAMESPACE && git commit -m 'Document (GitHub Actions)' || echo "No documentation changes to commit" | |||
| git add man/\* NAMESPACE DESCRIPTION && git commit -m 'Document (GitHub Actions)' || echo "No documentation changes to commit" | |||
| - name: Build README and index | |||
| run: | | |||
| if [ -f "index.Rmd" ]; then | |||
| Rscript -e 'rmarkdown::render("index.Rmd", quiet = FALSE, output_options = list(html_preview = FALSE))' | |||
| git add index.md && git commit -m 'Re-build index.Rmd (GitHub Actions)' || echo "No index.Rmd changes to commit" | |||
| git add index.md man/figures/index* && git commit -m 'Re-build index.Rmd (GitHub Actions)' || echo "No index.Rmd changes to commit" | |||
| else | |||
| echo "No index.Rmd to build" | |||
| fi | |||
| if [ -f "README.Rmd" ]; then | |||
| Rscript -e 'devtools::build_readme(quiet = FALSE)' | |||
| git add man/figures/README\* README.md && git commit -m 'Re-build README.Rmd (GitHub Actions)' || echo "No readme changes to commit" | |||
| git add man/figures/README* README.md && git commit -m 'Re-build README.Rmd (GitHub Actions)' || echo "No readme changes to commit" | |||
| else | |||
| echo "No README.Rmd to build" | |||
| fi | |||