Skip to content

Commit e8fe426

Browse files
committed
Update cache based on test repo HEAD
1 parent cc630e1 commit e8fe426

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,17 @@ jobs:
4545
run: |
4646
$CONDA/bin/conda install -c conda-forge git-annex
4747
python -m pip install datalad datalad-next datalad-osf
48+
- name: Check remote HEAD
49+
run: |
50+
git ls-remote https://gin.g-node.org/oesteban/nitransforms-tests \
51+
| awk '/HEAD/{ print "HEAD=" $1 }' >> $GITHUB_ENV
4852
4953
- uses: actions/cache@v3
5054
with:
5155
path: ${{ env.TEST_DATA_HOME }}
52-
key: data-cache-v2
56+
key: data-cache-v2-${{ env.HEAD }}
5357
restore-keys: |
58+
data-cache-v2-${{ env.HEAD }}
5459
data-cache-v2
5560
5661
- name: Install test data

0 commit comments

Comments
 (0)