Skip to content

Moved commit_catch to hake-assessment #9

Moved commit_catch to hake-assessment

Moved commit_catch to hake-assessment #9

# 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: ['**.Rmd']
name: render-rmarkdown
jobs:
render-rmarkdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
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
- name: Render Rmarkdown files and Commit Results
run: |
Rscript -e 'install.packages(c("knitr", "rmarkdown"))'
Rscript -e 'rmarkdown::render("README.Rmd")'
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
git commit README.md -m 'Re-build Rmarkdown files' || echo "No changes to commit"
git push origin || echo "No changes to commit"