Skip to content

Commit 1bfd34e

Browse files
committed
Include a hash of third-party.sh in the third party tools cache
That way, if that file changes, it should cause it to refresh the cache
1 parent d7a9d75 commit 1bfd34e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
id: restore-cache
6464
with:
6565
path: ~/third
66-
key: third_${{ secrets.CACHE_VERSION }}
66+
key: third_${{ hashFiles('tools/github_actions/third-party.sh') }}_${{ secrets.CACHE_VERSION }}
6767

6868
- name: Download third party data
6969
run: |
@@ -119,7 +119,7 @@ jobs:
119119
uses: actions/cache@v3
120120
with:
121121
path: ~/third
122-
key: third_${{ secrets.CACHE_VERSION }}
122+
key: third_${{ hashFiles('tools/github_actions/third-party.sh') }}_${{ secrets.CACHE_VERSION }}
123123
if: runner.os == 'Linux'
124124

125125
- name: Run pytest

0 commit comments

Comments
 (0)