From 3761526880ad24a5c6683ec4d7d4a4cbefecdc24 Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Mon, 22 Mar 2021 19:59:20 -0700 Subject: [PATCH] Update R-CMD-check.yml Allow HTML doc generation on manual workflow dispatch --- .github/workflows/R-CMD-check.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/R-CMD-check.yml b/.github/workflows/R-CMD-check.yml index 62d6d4ce..f37b4bc1 100644 --- a/.github/workflows/R-CMD-check.yml +++ b/.github/workflows/R-CMD-check.yml @@ -9,6 +9,7 @@ on: - master schedule: - cron: '0 0 * * 6' # At 00:00 on Saturday + workflow_dispatch: name: R-CMD-check @@ -100,7 +101,7 @@ jobs: shell: Rscript {0} - name: Render README - if: runner.os == 'Windows' && github.event_name == 'schedule' + if: runner.os == 'Windows' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') run: | install.packages(c("rmarkdown","devtools","pkgdown","aqp","soilDB","sharpshootR","dendextend","latticeExtra")) remotes::install_github(c("ncss-tech/aqp","ncss-tech/sharpshootR"), dependencies = FALSE) @@ -110,14 +111,14 @@ jobs: shell: Rscript {0} - name: Commit results - if: runner.os == 'Windows' && github.event_name == 'schedule' + if: runner.os == 'Windows' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') run: | git commit README.md -m 'Render README.Rmd' || echo "No changes to commit" git add docs/\* git commit -m 'Update Docs' || echo "No changes to commit" - name: Push results - if: runner.os == 'Windows' && github.event_name == 'schedule' + if: runner.os == 'Windows' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') run: | git push origin HEAD:${{ env.BRANCH_NAME }} || echo "No changes to commit"