-
Notifications
You must be signed in to change notification settings - Fork 25
47 lines (39 loc) · 1.15 KB
/
ensemble.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Generate Ensemble"
on:
workflow_dispatch:
schedule:
- cron: "15 11,23 * * 2,3"
jobs:
ensemble:
# if: github.repository_owner == 'european-modelling-hubs'
runs-on: ubuntu-latest
steps:
# checkout repo
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
install-r: false
use-public-rspm: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libv8-dev
- name: Installing dependencies
run: |
install.packages("remotes")
remotes::install_github("Infectious-Disease-Modeling-Hubs/hubUtils")
remotes::install_github("Infectious-Disease-Modeling-Hubs/hubEnsembles")
install.packages("dplyr")
install.packages("jsonlite")
shell: Rscript {0}
- name: Generate Ensemble
run: |
# code here
# Rscript code-folder/code.R
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
add: 'data-folder'
message: "Update ensemble data"
default_author: github_actions
push: true