mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 08:43:55 +08: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) {
|
uploadToS3(key, archivePath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
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
|
return this._client
|
||||||
.putObject({
|
.putObject({
|
||||||
Bucket: this._bucket,
|
Bucket: this._bucket,
|
||||||
|
|
2
dist/save/index.js
vendored
2
dist/save/index.js
vendored
|
@ -43361,7 +43361,7 @@ class CacheService {
|
||||||
}
|
}
|
||||||
uploadToS3(key, archivePath) {
|
uploadToS3(key, archivePath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
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
|
return this._client
|
||||||
.putObject({
|
.putObject({
|
||||||
Bucket: this._bucket,
|
Bucket: this._bucket,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cache",
|
"name": "cache",
|
||||||
"version": "0.7.0",
|
"version": "0.8.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",
|
||||||
|
|
|
@ -127,7 +127,7 @@ export class CacheService {
|
||||||
key: string,
|
key: string,
|
||||||
archivePath: string
|
archivePath: string
|
||||||
): Promise<PromiseResult<S3.PutObjectOutput, AWSError>> {
|
): Promise<PromiseResult<S3.PutObjectOutput, AWSError>> {
|
||||||
const data = fs.readFileSync(archivePath).toString("base64");
|
const data = fs.readFileSync(archivePath);
|
||||||
|
|
||||||
return this._client
|
return this._client
|
||||||
.putObject({
|
.putObject({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue