From 622d9a1ec882ce71c9c35fa19bc4c1df5a2fec97 Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Mon, 6 May 2024 18:47:57 -0700 Subject: [PATCH] Update nightly-readme-build.yml (#32) --- .github/workflows/nightly-readme-build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly-readme-build.yml b/.github/workflows/nightly-readme-build.yml index e8fac22..cca5a32 100644 --- a/.github/workflows/nightly-readme-build.yml +++ b/.github/workflows/nightly-readme-build.yml @@ -29,10 +29,16 @@ jobs: run: | Rscript -e 'pak::local_install(".")' - - name: Render README.Rmd file and Commit Results + - name: Render README.Rmd file run: | Rscript -e 'rmarkdown::render("README.Rmd")' - git config --local user.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - git commit README.md -m 'Re-build Rmarkdown files' || echo "No changes to commit" - git push origin || echo "No changes to commit" + - name: Create pull request + uses: peter-evans/create-pull-request@v4 + with: + commit-message: GH - Render README + title: GH - Render README + body: GH action to re-knit the README.Rmd + base: main + labels: ci/cd + branch: nightly_readme_build + delete-branch: true