mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 08:43:55 +08:00
v0.5.0
This commit is contained in:
parent
9c23f97836
commit
ef015fc7a1
4 changed files with 16 additions and 4 deletions
6
dist/restore/index.js
vendored
6
dist/restore/index.js
vendored
|
@ -43366,7 +43366,11 @@ class CacheService {
|
||||||
.putObject({
|
.putObject({
|
||||||
Bucket: this._bucket,
|
Bucket: this._bucket,
|
||||||
Key: path.join(this.getCacheFolder(), key),
|
Key: path.join(this.getCacheFolder(), key),
|
||||||
Body: data
|
Body: data,
|
||||||
|
Metadata: {
|
||||||
|
ContentType: "text/plain",
|
||||||
|
ContentEncoding: "gzip"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.promise();
|
.promise();
|
||||||
});
|
});
|
||||||
|
|
6
dist/save/index.js
vendored
6
dist/save/index.js
vendored
|
@ -43366,7 +43366,11 @@ class CacheService {
|
||||||
.putObject({
|
.putObject({
|
||||||
Bucket: this._bucket,
|
Bucket: this._bucket,
|
||||||
Key: path.join(this.getCacheFolder(), key),
|
Key: path.join(this.getCacheFolder(), key),
|
||||||
Body: data
|
Body: data,
|
||||||
|
Metadata: {
|
||||||
|
ContentType: "text/plain",
|
||||||
|
ContentEncoding: "gzip"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.promise();
|
.promise();
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cache",
|
"name": "cache",
|
||||||
"version": "0.5.0",
|
"version": "0.6.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Cache dependencies and build outputs",
|
"description": "Cache dependencies and build outputs",
|
||||||
"main": "dist/restore/index.js",
|
"main": "dist/restore/index.js",
|
||||||
|
|
|
@ -133,7 +133,11 @@ export class CacheService {
|
||||||
.putObject({
|
.putObject({
|
||||||
Bucket: this._bucket,
|
Bucket: this._bucket,
|
||||||
Key: path.join(this.getCacheFolder(), key),
|
Key: path.join(this.getCacheFolder(), key),
|
||||||
Body: data
|
Body: data,
|
||||||
|
Metadata: {
|
||||||
|
ContentType: "text/plain",
|
||||||
|
ContentEncoding: "gzip"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.promise();
|
.promise();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue