CI: setup-dependent pip cache (#16751)
* Setup-dependent pip cache * Do not restore from old versions
This commit is contained in:
8
.github/workflows/update_metdata.yml
vendored
8
.github/workflows/update_metdata.yml
vendored
@@ -15,16 +15,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Loading cache.
|
||||
uses: actions/cache@v2
|
||||
id: cache
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: v1-metadata
|
||||
restore-keys: |
|
||||
v1-metadata-${{ hashFiles('setup.py') }}
|
||||
v1-metadata
|
||||
key: v1-metadata-${{ hashFiles('setup.py') }}
|
||||
|
||||
- name: Setup environment
|
||||
run: |
|
||||
@@ -33,4 +30,3 @@ jobs:
|
||||
- name: Update metadata
|
||||
run: |
|
||||
python utils/update_metadata.py --token ${{ secrets.SYLVAIN_HF_TOKEN }} --commit_sha ${{ github.sha }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user