-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (35 loc) · 1.26 KB
/
check_calendar_flow.yaml
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
on:
schedule:
- cron: "0 13 * * 1,2,3,4,5"
workflow_dispatch:
name: check_calendar_flow
jobs:
run-r-script:
runs-on: macos-latest
timeout-minutes: 30
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages("rmarkdown")'
- name: Install distill
run: Rscript -e 'install.packages("distill")'
- name: Install googlesheets4
run: Rscript -e 'install.packages("googlesheets4")'
- name: Install tidyverse
run: Rscript -e 'install.packages("tidyverse")'
- name: Install toastui
run: Rscript -e 'install.packages("toastui")'
- name: Correr script calendar
run: |
Rscript ".github/source/check_calendar_items.R"
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add -A
git commit -m "Actualizo eventos en calendario" || echo "No changes to commit"
git push origin || echo "No changes to commit"