File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
.github/actions/load-data Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ' Prepare Datasets'
2+ description : ' Restores data from caches or downloads it from Google Drive.'
3+ inputs :
4+ rclone-config :
5+ description : ' Rclone configuration'
6+ required : true
7+ runs :
8+ using : ' composite'
9+ steps :
10+ - name : Setup Rclone
11+ uses : AnimMouse/setup-rclone@v1
12+ with :
13+ rclone_config : ${{ inputs.rclone-config }}
14+
15+ - name : Get dataset version hash
16+ shell : bash
17+ run : |
18+ HASH=$(rclone lsl remote:"SampleData" --drive-shared-with-me)
19+ echo "DATASET_HASH=$HASH" >> $GITHUB_OUTPUT
20+
21+ - name : Cache datasets
22+ uses : actions/cache@v4
23+ id : cache-datasets
24+ with :
25+ path : ./testing_data
26+ key : ephys-datasets-${{ steps.ephys.outputs.DATASET_HASH }}
27+ enableCrossOsArchive : true
28+
29+ - if : ${{ steps.cache-datasets.outputs.cache-hit != 'true' }}
30+ name : Download datasets from Google Drive
31+ shell : bash
32+ run : |
33+ rclone copy remote:"SampleData" ./testing_data --drive-shared-with-me
You can’t perform that action at this time.
0 commit comments