Weblate Dashboard Refresh #334
This file contains 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
name: 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: Render my document to all types | |
run: Rscript -e 'rmarkdown::render("index.Rmd")' | |
- name: Configure | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- name: Commit and Push Changes | |
run: | | |
git pull origin main | |
git add . | |
git commit -m "CSS updated" | |
git push |