We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21403f4 commit 87e6c72Copy full SHA for 87e6c72
.github/workflows/test.yml
@@ -34,11 +34,19 @@ jobs:
34
with:
35
python-version: "3.11"
36
37
+ - name: Get daily cache timestamp
38
+ id: daily-cache
39
+ run: |
40
+ # Calculate date (e.g., 2024-01-15) for daily cache expiration
41
+ DATE_STAMP=$(date +"%Y-%m-%d")
42
+ echo "date=$DATE_STAMP" >> $GITHUB_OUTPUT
43
+ echo "Using daily cache stamp: $DATE_STAMP"
44
+
45
- name: Cache pip dependencies
46
uses: actions/cache@v3
47
48
path: ~/.cache/pip
- key: ${{ runner.os }}-pip-3.11-${{ hashFiles('**/pyproject.toml') }}
49
+ key: ${{ runner.os }}-pip-3.11-${{ steps.daily-cache.outputs.date }}
50
restore-keys: |
51
${{ runner.os }}-pip-3.11-
52
0 commit comments