Browse Source

actions: + README,ignore cache

master
Lukas Burk 5 months ago
parent
commit
064078d953
Signed by: lukas <lukas@quantenbrot.de> GPG Key ID: 044E8B20BB186F81
2 changed files with 29 additions and 1 deletions
  1. +26
    -0
      .github/workflows/render-readme.yaml
  2. +3
    -1
      .gitignore

+ 26
- 0
.github/workflows/render-readme.yaml View File

@@ -0,0 +1,26 @@
on:
push:
paths:
- README.Rmd

name: Render README

jobs:
render:
name: Render README
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-pandoc@v1
- name: Install rmarkdown + package
run: |
Rscript -e 'install.packages("rmarkdown")'
Rscript -e 'install.packages("remotes")'
Rscript -e 'remotes::install_github("jemus42/speedrunr")'
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Commit results
run: |
git commit README.md -m 'Re-build README.Rmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"

+ 3
- 1
.gitignore View File

@@ -5,4 +5,6 @@
experiments.R
inst/doc

.Rprofile
.Rprofile

README_cache

Loading…
Cancel
Save