Skip to content

Commit

Permalink
MNT/CI: use github actions env var to define cache version
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed May 8, 2023
1 parent 95693f2 commit 2e78d6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
uses: actions/cache@v3
with:
path: ./doc_cache
key: fastf1-${{ secrets.CACHE_VERSION }}-doc-cache-${{ hashFiles('*.*') }}
key: fastf1-$CACHE_VERSION-doc-cache-${{ hashFiles('*.*') }}
restore-keys: |
fastf1-${{ secrets.CACHE_VERSION }}-doc-cache
fastf1-$CACHE_VERSION-doc-cache
- name: Install Fast-F1 from sources
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
with:
publish: true
secrets:
CACHE_VERSION: ${{ secrets.CACHE_VERSION }}
CACHE_VERSION: $CACHE_VERSION
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
uses: actions/cache@v3
with:
path: ./test_cache
key: fastf1-${{ secrets.CACHE_VERSION }}-${{ matrix.python-version }}-${{ hashFiles('*.*') }}
key: fastf1-$CACHE_VERSION-${{ matrix.python-version }}-${{ hashFiles('*.*') }}
restore-keys: |
fastf1-${{ secrets.CACHE_VERSION }}-${{ matrix.python-version }}
fastf1-$CACHE_VERSION-${{ matrix.python-version }}
- name: Run tests
run: |
Expand Down Expand Up @@ -150,4 +150,4 @@ jobs:
with:
publish: false
secrets:
CACHE_VERSION: ${{ secrets.CACHE_VERSION }}
CACHE_VERSION: $CACHE_VERSION

0 comments on commit 2e78d6b

Please sign in to comment.