Skip to content

Commit

Permalink
Update ensemble.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
M-7th authored Nov 15, 2023
1 parent 95e367e commit 59dcd8d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ensemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ jobs:
steps:
# checkout repo
- uses: actions/checkout@v3
path: './repo/
# Checkout the python tools repo
# -------------------------------------------
- name: checkout python tools repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'european-modelling-hubs/hub-tools'
ref: 'main'
path: './tools/'

- uses: r-lib/actions/setup-r@v2
with:
install-r: false
Expand All @@ -35,13 +46,13 @@ jobs:

- name: Generate Ensemble
run: |
# code here
# Rscript code-folder/code.R
# call R script from tools
Rscript ./tools/R-code/generate-ensemble.R --hub_path "./repo/" --agg_fun "median" --model_id "hubEnsemble" --team_id "respicast"
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
add: 'data-folder'
cwd: './repo'
message: "Update ensemble data"
default_author: github_actions
push: true

0 comments on commit 59dcd8d

Please sign in to comment.