-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.4 KB
/
update-datasets.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
name: Update datawarehouse datasets
on:
schedule:
- cron: "42 0 * * *"
workflow_dispatch:
jobs:
update_dw:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dao-scripts
run: pip install dao-scripts
- name: Get cached datawarehouse
uses: dawidd6/action-download-artifact@v2
with:
workflow: update-datasets.yml
name: datawarehouse
path: ./datawarehouse/
if_no_artifact_found: warn
- name: Obtain datawarehouse
run: dao-scripts --skip-token-balances
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: datawarehouse
path: ./datawarehouse/
upload_dw:
runs-on: ubuntu-latest
environment: daviddavo
needs: [update_dw]
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: datawarehouse
path: ./datawarehouse/
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dao-scripts
run: pip install dao-scripts[upload]
- name: Upload dataset
run: dao-utils-upload-dw
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
ZENODO_DEPOSITION_ID: ${{ secrets.ZENODO_DEPOSITION_ID }}
ZENODO_API_TOKEN: ${{ secrets.ZENODO_API_TOKEN }}