mirror of
https://github.com/actions/cache.git
synced 2025-04-23 14:30:49 +00:00
v0.8.0
This commit is contained in:
parent
3b3f1ff398
commit
cbb243eff9
4 changed files with 4 additions and 4 deletions
2
dist/restore/index.js
vendored
2
dist/restore/index.js
vendored
|
@ -43361,7 +43361,7 @@ class CacheService {
|
|||
}
|
||||
uploadToS3(key, archivePath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const data = fs_1.default.readFileSync(archivePath).toString("base64");
|
||||
const data = fs_1.default.readFileSync(archivePath);
|
||||
return this._client
|
||||
.putObject({
|
||||
Bucket: this._bucket,
|
||||
|
|
2
dist/save/index.js
vendored
2
dist/save/index.js
vendored
|
@ -43361,7 +43361,7 @@ class CacheService {
|
|||
}
|
||||
uploadToS3(key, archivePath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const data = fs_1.default.readFileSync(archivePath).toString("base64");
|
||||
const data = fs_1.default.readFileSync(archivePath);
|
||||
return this._client
|
||||
.putObject({
|
||||
Bucket: this._bucket,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cache",
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.0",
|
||||
"private": true,
|
||||
"description": "Cache dependencies and build outputs",
|
||||
"main": "dist/restore/index.js",
|
||||
|
|
|
@ -127,7 +127,7 @@ export class CacheService {
|
|||
key: string,
|
||||
archivePath: string
|
||||
): Promise<PromiseResult<S3.PutObjectOutput, AWSError>> {
|
||||
const data = fs.readFileSync(archivePath).toString("base64");
|
||||
const data = fs.readFileSync(archivePath);
|
||||
|
||||
return this._client
|
||||
.putObject({
|
||||
|
|
Loading…
Add table
Reference in a new issue