Render README #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| paths: | |
| - 'README.Rmd' | |
| workflow_dispatch: | |
| name: Render README | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - name: Install pandoc | |
| uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install package dependencies | |
| uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: rmarkdown, local::. | |
| - name: Render README.Rmd | |
| run: Rscript -e 'rmarkdown::render("README.Rmd")' | |
| - name: Commit the results | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: Render `README.md` after changes to the `.Rmd` version (GitHub action) |