-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1001 Bytes
/
01-rscript.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
on:
schedule:
- cron: "30 11,15,19 * * 1,2,3,4,5"
- cron: "0 21 * * 1,2,3,4,5"
workflow_dispatch:
name: 01-rscript
jobs:
run-r-script:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Execute Script
env:
TOKEN_BOT: ${{ secrets.TOKEN_BOT }}
ID_JUAN: ${{ secrets.ID_JUAN }}
ID_MICA: ${{ secrets.ID_MICA }}
ID_JUANGA: ${{ secrets.ID_JUANGA }}
ID_ELIAN: ${{ secrets.ID_ELIAN }}
run: |
Rscript "01-rscript/script.R"
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add -A
git commit -m "Actualizo csv" || echo "No changes to commit"
git push origin || echo "No changes to commit"