CI: save cache even when build failed

This commit is contained in:
SukkaW 2024-02-08 22:57:44 +08:00
parent 203f82565e
commit 2982d74a55
2 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,7 @@ jobs:
- name: Cache cache.db
uses: actions/cache@v4
with:
save-always: true
path: |
.cache
key: ${{ runner.os }}-v1-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-${{ steps.date.outputs.day }} ${{ steps.date.outputs.hour }}:${{ steps.date.outputs.minute }}:${{ steps.date.outputs.second }}

View File

@ -180,7 +180,6 @@ export class Cache<S = string> {
if (peeked === promise) {
return promise.then((value) => {
const serializer = 'serializer' in opt ? opt.serializer : identity;
this.set(key, serializer(value), ttl);
return value;
});