mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
CI: save cache even when build failed
This commit is contained in:
parent
203f82565e
commit
2982d74a55
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -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 }}
|
||||
|
||||
@ -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;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user