-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (62 loc) · 2.21 KB
/
update_iliplus.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: "UpdateIliPlus"
on:
workflow_dispatch:
jobs:
import_iliplus_data_job:
# if: github.repository_owner == 'european-modelling-hubs'
runs-on: ubuntu-latest
outputs:
changed_files: ${{ steps.import_erviss.outputs.imported_files }}
steps:
# Checkout the hub tools repo for python scripts
# -------------------------------------------------
- name: checkout hub tools repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'european-modelling-hubs/hub-tools'
ref: 'main'
path: './tools/'
# Checkout the data repository
# -------------------------------------------
- name: checkout data repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'Testing-Forecast-Actions/ScenarioModellingHub'
# repository: 'european-modelling-hubs/RespiCompass'
ref: 'main'
path: './repo/'
# Setup Pyton env, version 3.10
# --------------------------------
- uses: actions/setup-python@v4
with:
python-version: '3.10'
# Install additional packages
# --------------------------------
- run: pip install pandas
# Run Python script to import erviss data
# -----------------------------------------
- name: Import Ili plus
id: import_iliplus
run: |
echo ">>> Updating ili plus..."
python ./tools/code/SH_get_ili_plus.py
echo ">>> Updates completed"
# Commit changes to dt
# -----------------------------------------
- name: Commit data repo changes
uses: EndBug/add-and-commit@v7
with:
cwd: './repo'
message: "Updating Truth Data repo ..."
default_author: github_actions
push: true
# call-persisting-wf:
# needs: import_iliplus_data_job
# uses: Testing-Forecast-Actions/ScenarioModellingHub/.github/workflows/persist_changes.yml@main
# #uses: european-modelling-hubs/RespiCompass/.github/workflows/persist_changes.yml@main
# with:
# changes-list: ${{ needs.import_iliplus_data_job.outputs.changed_files }}
# secrets:
# envPAT: ${{ secrets.GITHUB_TOKEN }}