-
Notifications
You must be signed in to change notification settings - Fork 129
32 lines (31 loc) · 946 Bytes
/
asistencia.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
name: "Plot asistencia"
on:
push:
paths:
- 'data/asistencia.csv'
jobs:
crea-grafico:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Instala R
uses: r-lib/actions/setup-r@v1
with:
r-version: '3.5.3' # The R version to download (if necessary) and use.
- name: Install dependencies
run: |
install.packages(c("ggplot2","ggthemes"))
shell: Rscript {0}
- name: Ejecuta el script
run: Rscript data/plot-asistencia.R
- name: Checks in results
run: |
if [[ $(git status -s) ]]; then
git config --global user.email "[email protected]"
git config --global user.name "ÁgilDataBot"
.github/workflows/commit-msg-asistencia.pl | git commit -aF -
git push
else
echo "🟏 No ha habido cambios"
fi