-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.29 KB
/
models.install.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
name: model-install
on:
push:
branches: [ migrate_processing ]
pull-request:
branches: migrate_processing
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: windows-latest, r: 'release'}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
needs: check
- name: Clone allometric/allometric.
run: |
git clone --branch migrate_processing https://github.com/allometric/allometric.git
- name: Install allometric, generate the models.RDS file.
run: |
devtools::install("./allometric", reload = FALSE);
library(allometric)
models <- ingest_models(FALSE, pub_path = "./publications", params_path = "./parameters");
warnings();
saveRDS(models, "./models.RDS")
shell: Rscript {0}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Updating models.RDS
file_pattern: '*.RDS'