CICD: Fail on no cache hit (#3429)

This commit is contained in:
Ocraftyone 2024-01-06 00:46:53 -05:00 committed by GitHub
parent 5aae123cbb
commit 40a980f5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: load cached deps
uses: actions/cache@v3
with:
path: ${{ inputs.cache-path }}
key: ${{ inputs.cache-key }}
fail-on-cache-miss: true
- name: Get the version and date on Ubuntu and macOS
if: inputs.os != 'windows-latest'
run: |
@ -65,12 +72,6 @@ jobs:
echo "date=$date" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
echo "date: ${{ env.date }} version: ${{ env.ver }}"
shell: pwsh
- name: load cached deps
uses: actions/cache@v3
with:
path: ${{ inputs.cache-path }}
key: ${{ inputs.cache-key }}
# Mac
- name: Install tools mac