Skip to content

Commit f0ab7bf

Browse files
authored
Merge branch 'main' into fix_backslash_in_storenames
2 parents 3c8eb3f + dc291f4 commit f0ab7bf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)