diff --git a/.github/workflows/render-rmarkdown.yaml b/.github/workflows/render-rmarkdown.yaml deleted file mode 100644 index e4a81a64..00000000 --- a/.github/workflows/render-rmarkdown.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -on: - push: - paths: ['README.Rmd', '.github/workflows/render-rmarkdown.yaml'] - -name: render-rmarkdown - -jobs: - render-rmarkdown: - runs-on: ubuntu-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout repo - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - uses: r-lib/actions/setup-pandoc@v2 - - - uses: r-lib/actions/setup-r@v2 - - - uses: r-lib/actions/setup-renv@v2 - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::rcmdcheck - needs: check - - - name: Install rmarkdown, remotes, and the local package - run: | - install.packages("remotes") - remotes::install_local(".") - remotes::install_cran("rmarkdown") - shell: Rscript {0} - - - name: Render Rmarkdown files and Commit Results - run: | - Rscript -e 'rmarkdown::render("README.Rmd", output_file = "README.md")' - git config --local user.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - git add README.Rmd README.md man/figures/README-* - git commit -m 'Re-build Rmarkdown files' || echo "No changes to commit" - git push origin || echo "No changes to commit"