Skip to content

Weblate Dashboard Refresh #3

Weblate Dashboard Refresh

Weblate Dashboard Refresh #3

name: Weblate Dashboard Refresh
on:
schedule:
- cron: '0 */12 * * *'
push:
branches:
- main
jobs:
refresh-the-dashboard:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: weblate
steps:
- name: checkout_repo
uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-tinytex@v2
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install rmarkdown
run: |
Rscript -e 'install.packages("flexdashboard")'
Rscript -e 'install.packages("dplyr")'
Rscript -e 'install.packages("fontawesome")'
Rscript -e 'install.packages("DT")'
Rscript -e 'install.packages("plotly")'
Rscript -e 'install.packages("reshape2")'
Rscript -e 'install.packages("formattable")'
Rscript -e 'install.packages("htmlwidgets")'
Rscript -e 'install.packages("curl")'
Rscript -e 'install.packages("lubridate")'
Rscript -e 'install.packages("jsonlite")'
Rscript -e 'install.packages("crosstalk")'
Rscript -e 'install.packages("htmltools")'
Rscript -e 'install.packages("reactable")'
- name: Configure
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Render my document to all types
run: git rm -r index_files --ignore-unmatch && Rscript -e 'rmarkdown::render("index.Rmd")'
- name: Commit and Push Changes
run: |
git pull origin main
git add .
git commit -m "Weblate dashboard updated"
git push