-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (50 loc) · 1.31 KB
/
weblate_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
51
52
53
name: Weblate Dashboard Refresh
on:
workflow_dispatch:
schedule:
- cron: '40 12 * * *'
push:
branches:
- main
paths:
- 'weblate/index.Rmd'
- '.github/worklows/weblate_dashboard.yml'
jobs:
refresh-the-dashboard:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: weblate
steps:
- name: checkout_repo
uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::crosstalk
any::curl
any::dplyr
any::DT
any::fontawesome
any::formattable
any::flexdashboard
any::htmltools
any::htmlwidgets
any::jsonlite
any::lubridate
any::plotly
any::reactable
any::readr
any::reshape2
- 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 config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Weblate dashboard updated"
git push