Skip to content

Merge pull request #76 from worldbank/typo #29

Merge pull request #76 from worldbank/typo

Merge pull request #76 from worldbank/typo #29

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main]
name: render-readme
jobs:
render-readme:
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@v1
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-renv@v1
- name: Install rmarkdown
run: Rscript -e 'install.packages("rmarkdown")'
- name: Install remotes
run: Rscript -e 'install.packages("remotes")'
- name: Install pipr
run: Rscript -e 'remotes::install_github("worldbank/pipr")'
- name: Install dplyr
run: Rscript -e 'install.packages("dplyr")'
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "md_document")'
- 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"