1717 # Requirement settings identified as 'ExampleDataCache / {os}'
1818 name : ${{ matrix.os }}
1919 runs-on : ${{ matrix.os }}
20+ defaults :
21+ run :
22+ shell : bash
2023 strategy :
2124 fail-fast : false
2225 matrix :
2730
2831 - name : Get ephy_testing_data current head hash
2932 id : ephys
30- run : echo "::set-output name=HASH_EPHY_DATASET::$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)"
33+ run : |
34+ HASH=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)
35+ if [ -z "$HASH" ]; then echo "Failed to fetch ephy_testing_data hash" && exit 1; fi
36+ echo "HASH_EPHY_DATASET=$HASH" >> $GITHUB_OUTPUT
3137 - name : Get cached ephys example data - ${{ steps.ephys.outputs.HASH_EPHY_DATASET }}
3238 uses : actions/cache@v4
3339 id : cache-ephys-datasets
3642 key : ephys-datasets-v2-${{ matrix.os }}-${{ steps.ephys.outputs.HASH_EPHY_DATASET }}
3743 - name : Get ophys_testing_data current head hash
3844 id : ophys
39- run : echo "::set-output name=HASH_OPHYS_DATASET::$(git ls-remote https://gin.g-node.org/CatalystNeuro/ophys_testing_data.git HEAD | cut -f1)"
45+ run : |
46+ HASH=$(git ls-remote https://gin.g-node.org/CatalystNeuro/ophys_testing_data.git HEAD | cut -f1)
47+ if [ -z "$HASH" ]; then echo "Failed to fetch ophys_testing_data hash" && exit 1; fi
48+ echo "HASH_OPHYS_DATASET=$HASH" >> $GITHUB_OUTPUT
4049 - name : Get cached ophys example data - ${{ steps.ophys.outputs.HASH_OPHYS_DATASET }}
4150 uses : actions/cache@v4
4251 id : cache-ophys-datasets
@@ -45,13 +54,16 @@ jobs:
4554 key : ophys-datasets-${{ matrix.os }}-${{ steps.ophys.outputs.HASH_OPHYS_DATASET }}
4655 - name : Get behavior_testing_data current head hash
4756 id : behavior
48- run : echo "::set-output name=HASH_BEHAVIOR_DATASET::$(git ls-remote https://gin.g-node.org/CatalystNeuro/behavior_testing_data.git HEAD | cut -f1)"
57+ run : |
58+ HASH=$(git ls-remote https://gin.g-node.org/CatalystNeuro/behavior_testing_data.git HEAD | cut -f1)
59+ if [ -z "$HASH" ]; then echo "Failed to fetch behavior_testing_data hash" && exit 1; fi
60+ echo "HASH_BEHAVIOR_DATASET=$HASH" >> $GITHUB_OUTPUT
4961 - name : Get cached behavior example data - ${{ steps.behavior.outputs.HASH_BEHAVIOR_DATASET }}
5062 uses : actions/cache@v4
5163 id : cache-behavior-datasets
5264 with :
5365 path : ./behavior_testing_data
54- key : behavior-datasets-${{ matrix.os }}-${{ steps.behavior.outputs.HASH_behavior_DATASET }}
66+ key : behavior-datasets-${{ matrix.os }}-${{ steps.behavior.outputs.HASH_BEHAVIOR_DATASET }}
5567
5668 - if : steps.cache-ephys-datasets.outputs.cache-hit != 'true' || steps.cache-ophys-datasets.outputs.cache-hit != 'true' || steps.cache-behavior-datasets.outputs.cache-hit != 'true'
5769 name : Install and configure AWS CLI
0 commit comments