Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/caches_cron_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ jobs:
- name: Get current hash (SHA) of the ephy_testing_data repo
id: ephy_testing_data
run: |
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
set -o pipefail
if ! hash="$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" || [ -z "$hash" ]; then
echo "::error::could not resolve ephy_testing_data HEAD on gin; refusing to build a degenerate cache key"
exit 1
fi
echo "dataset_hash=$hash" >> "$GITHUB_OUTPUT"

- uses: actions/cache@v3
# Loading cache of ephys_testing_dataset
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/io-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ jobs:
# the key depend on the last commit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
id: ephy_testing_data
run: |
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
set -o pipefail
if ! hash="$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" || [ -z "$hash" ]; then
echo "::error::could not resolve ephy_testing_data HEAD on gin; refusing to build a degenerate cache key"
exit 1
fi
echo "dataset_hash=$hash" >> "$GITHUB_OUTPUT"

- uses: actions/cache/restore@v4
# Loading cache of ephys_testing_dataset
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/plexon2-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
# the key depend on the last commit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
id: ephy_testing_data
run: |
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
set -o pipefail
if ! hash="$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" || [ -z "$hash" ]; then
echo "::error::could not resolve ephy_testing_data HEAD on gin; refusing to build a degenerate cache key"
exit 1
fi
echo "dataset_hash=$hash" >> "$GITHUB_OUTPUT"

- uses: actions/cache/restore@v4
# Loading cache of ephys_testing_dataset
Expand Down
Loading