File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7070 - name : Get current hash (SHA) of the ephy_testing_data repo
7171 id : ephy_testing_data
7272 run : |
73- echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
73+ set -o pipefail
74+ if ! hash="$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" || [ -z "$hash" ]; then
75+ echo "::error::could not resolve ephy_testing_data HEAD on gin; refusing to build a degenerate cache key"
76+ exit 1
77+ fi
78+ echo "dataset_hash=$hash" >> "$GITHUB_OUTPUT"
7479
7580 - uses : actions/cache@v3
7681 # Loading cache of ephys_testing_dataset
Original file line number Diff line number Diff line change 4242 # the key depend on the last commit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
4343 id : ephy_testing_data
4444 run : |
45- echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
45+ set -o pipefail
46+ if ! hash="$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" || [ -z "$hash" ]; then
47+ echo "::error::could not resolve ephy_testing_data HEAD on gin; refusing to build a degenerate cache key"
48+ exit 1
49+ fi
50+ echo "dataset_hash=$hash" >> "$GITHUB_OUTPUT"
4651
4752 - uses : actions/cache/restore@v4
4853 # Loading cache of ephys_testing_dataset
Original file line number Diff line number Diff line change 3333 # the key depend on the last commit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
3434 id : ephy_testing_data
3535 run : |
36- echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
36+ set -o pipefail
37+ if ! hash="$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" || [ -z "$hash" ]; then
38+ echo "::error::could not resolve ephy_testing_data HEAD on gin; refusing to build a degenerate cache key"
39+ exit 1
40+ fi
41+ echo "dataset_hash=$hash" >> "$GITHUB_OUTPUT"
3742
3843 - uses : actions/cache/restore@v4
3944 # Loading cache of ephys_testing_dataset
You can’t perform that action at this time.
0 commit comments