Update actions/cache to 3.2.0 + new restore action (#84408)

This commit is contained in:
Marc Mueller 2022-12-21 23:51:48 +01:00 committed by GitHub
parent 10e796e9d5
commit 0d874899ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ jobs:
check-latest: true
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v3.2.0
with:
path: venv
key: >-
@ -191,7 +191,7 @@ jobs:
pip install "$(cat requirements_test.txt | grep pre-commit)"
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v3.0.11
uses: actions/cache@v3.2.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
@ -220,7 +220,7 @@ jobs:
check-latest: true
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -233,7 +233,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
@ -274,7 +274,7 @@ jobs:
check-latest: true
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -287,7 +287,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
@ -331,7 +331,7 @@ jobs:
check-latest: true
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -344,7 +344,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
@ -377,7 +377,7 @@ jobs:
check-latest: true
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -390,7 +390,7 @@ jobs:
exit 1
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
@ -509,7 +509,7 @@ jobs:
env.HA_SHORT_VERSION }}-$(date -u '+%Y-%m-%dT%H:%M:%s')" >> $GITHUB_OUTPUT
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache@v3.2.0
with:
path: venv
key: >-
@ -517,7 +517,7 @@ jobs:
needs.info.outputs.python_cache_key }}
- name: Restore pip wheel cache
if: steps.cache-venv.outputs.cache-hit != 'true'
uses: actions/cache@v3.0.11
uses: actions/cache@v3.2.0
with:
path: ${{ env.PIP_CACHE }}
key: >-
@ -568,7 +568,7 @@ jobs:
check-latest: true
- name: Restore full Python ${{ env.DEFAULT_PYTHON }} virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -601,7 +601,7 @@ jobs:
check-latest: true
- name: Restore base Python virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -635,7 +635,7 @@ jobs:
check-latest: true
- name: Restore full Python ${{ env.DEFAULT_PYTHON }} virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -680,7 +680,7 @@ jobs:
check-latest: true
- name: Restore full Python ${{ env.DEFAULT_PYTHON }} virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -729,7 +729,7 @@ jobs:
check-latest: true
- name: Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: >-
@ -784,7 +784,7 @@ jobs:
check-latest: true
- name: Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
@ -907,7 +907,7 @@ jobs:
check-latest: true
- name: Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v3.0.11
uses: actions/cache/restore@v3.2.0
with:
path: venv
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{