-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (45 loc) · 1.66 KB
/
build.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
47
48
49
50
51
52
53
54
name: make_cron
on:
push:
branches: [master]
schedule:
- cron: "30 14 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y libcurl4-openssl-dev fonts-ebgaramond libharfbuzz-dev libfribidi-dev
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: renv cache
uses: actions/cache@v3
with:
path: ~/.local/share/renv
key: ${{ runner.os }}-renv-v3-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-renv-v3-
- name: targets cache
uses: actions/cache@v3
with:
path: _targets
key: ${{ runner.os }}-targets-v3-${{ hashFiles('**/cache.log') }}
restore-keys: |
${{ runner.os }}-targets-v3-
- name: renv
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::restore()
- name: build
run: Rscript -e 'targets::tar_make()'
- name: push
run: |
git config --global user.name 'Adam Altmejd'
git config --global user.email '[email protected]'
git add --all
git commit --allow-empty -m "Github Action autocommit"
git push