Allow busting reserved Github action caches (#66638)
This commit is contained in:
parent
6795597a50
commit
d8d8b53cd1
1 changed files with 13 additions and 3 deletions
16
.github/workflows/build_and_deploy.yml
vendored
16
.github/workflows/build_and_deploy.yml
vendored
|
@ -66,7 +66,7 @@ jobs:
|
||||||
id: cache-build
|
id: cache-build
|
||||||
with:
|
with:
|
||||||
path: ./*
|
path: ./*
|
||||||
key: ${{ github.sha }}-${{ github.run_number }}
|
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}
|
||||||
|
|
||||||
# Build binaries for publishing
|
# Build binaries for publishing
|
||||||
build-native:
|
build-native:
|
||||||
|
@ -432,7 +432,12 @@ jobs:
|
||||||
id: restore-build
|
id: restore-build
|
||||||
with:
|
with:
|
||||||
path: ./*
|
path: ./*
|
||||||
key: ${{ github.sha }}-${{ github.run_number }}
|
# Cache includes repo checkout which is required for later scripts
|
||||||
|
fail-on-cache-miss: true
|
||||||
|
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ github.sha }}-${{ github.run_number }}
|
||||||
|
${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -480,7 +485,12 @@ jobs:
|
||||||
id: restore-build
|
id: restore-build
|
||||||
with:
|
with:
|
||||||
path: ./*
|
path: ./*
|
||||||
key: ${{ github.sha }}-${{ github.run_number }}
|
# Cache includes repo checkout which is required for later scripts
|
||||||
|
fail-on-cache-miss: true
|
||||||
|
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ github.sha }}-${{ github.run_number }}
|
||||||
|
${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue