Skip to content

update-dashboard

update-dashboard #975

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
- cron: 0 0 * * *
name: update-dashboard
jobs:
update-dashboard:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
- name: bcchr
shell: Rscript {0}
run: |
remotes::install_github("jbkunst/bcchr")
- name: Update Dashboard
shell: Rscript {0}
run: |
Sys.setlocale('LC_TIME', 'Spanish')
rmarkdown::render("index.Rmd")
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add --all
git commit -am "updating dashboard index.html" --author 'Joshua Kunst <[email protected]>'
git push