-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (48 loc) · 1.58 KB
/
Dashboard.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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