forked from european-modelling-hubs/flu-forecast-hub_archive
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (55 loc) · 2.29 KB
/
test_persisting.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
name: TestNewPersist
on:
workflow_dispatch:
jobs:
prepare-data-to-be-persisted:
runs-on: ubuntu-latest
outputs:
changed_files: ${{ steps.fake-data-generator.outputs.all_changed_files }}
steps:
- name: tracer
run: echo "Running prepare-data-to-be-persisted"
- name: fake data generator
id: fake-data-generator
run: echo 'all_changed_files=model-output/TEST_TEAM-TEST_MODEL/2024-02-28-TEST_TEAM-TEST_MODEL.csv' >> $GITHUB_OUTPUT
call-persisting-wf:
needs: prepare-data-to-be-persisted
uses: european-modelling-hubs/flu-forecast-hub/.github/workflows/persist_changes.yml@main
with:
changes-list: ${{ needs. prepare-data-to-be-persisted.outputs.changed_files }}
# changes-list: 'model-output/TEST_TEAM-TEST_MODEL/2024-02-28-TEST_TEAM-TEST_MODEL.csv'
# changes-list: toJSon('pr-changes:${{ needs.prepare-data-to-be-persisted.outputs.changed_files }}')
secrets:
envPAT: ${{ secrets.GITHUB_TOKEN }}
# steps:
# # Checkout the tools repo
# # -------------------------------------------
# - name: checkout 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: 'european-modelling-hubs/flu-forecast-hub'
# ref: 'main'
# path: './repo/'
# # Save test data to the persist_changes wf
# - uses: european-modelling-hubs/flu-forecast-hub/.github/workflows/persist_changes.yml@main
# with:
# changes-list: 'model-output/TEST_TEAM-TEST_MODEL/2024-02-28-TEST_TEAM-TEST_MODEL.csv'
# # secrets:
# # envPAT: ${{ secrets.GITHUB_TOKEN }}
# - name: Commit changes
# uses: EndBug/add-and-commit@v7
# with:
# cwd: './repo'
# message: "Update Test data"
# default_author: github_actions
# push: true