Skip to content

Commit

Permalink
Adjusted for node20 (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
inossidabile committed Jan 31, 2024
1 parent 82bfec9 commit bf248e7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/restore-only/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133952,7 +133952,7 @@ paths) {
throw new Error(`Error from S3: ${e}`);
}
if (!Array.isArray(response.Contents)) {
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${response}`);
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${JSON.stringify(response)}`);
}
core.debug(`Found objects ${response.Contents.length}`);
const found = response.Contents.find((content) => content.Key === primaryKey);
Expand Down
2 changes: 1 addition & 1 deletion dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133952,7 +133952,7 @@ paths) {
throw new Error(`Error from S3: ${e}`);
}
if (!Array.isArray(response.Contents)) {
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${response}`);
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${JSON.stringify(response)}`);
}
core.debug(`Found objects ${response.Contents.length}`);
const found = response.Contents.find((content) => content.Key === primaryKey);
Expand Down
2 changes: 1 addition & 1 deletion dist/save-only/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133952,7 +133952,7 @@ paths) {
throw new Error(`Error from S3: ${e}`);
}
if (!Array.isArray(response.Contents)) {
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${response}`);
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${JSON.stringify(response)}`);
}
core.debug(`Found objects ${response.Contents.length}`);
const found = response.Contents.find((content) => content.Key === primaryKey);
Expand Down
2 changes: 1 addition & 1 deletion dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133952,7 +133952,7 @@ paths) {
throw new Error(`Error from S3: ${e}`);
}
if (!Array.isArray(response.Contents)) {
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${response}`);
throw new Error(`Cannot found object in bucket ${s3BucketName} / ${JSON.stringify(response)}`);
}
core.debug(`Found objects ${response.Contents.length}`);
const found = response.Contents.find((content) => content.Key === primaryKey);
Expand Down
2 changes: 1 addition & 1 deletion restore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ outputs:
cache-matched-key:
description: 'Key of the cache that was restored, it could either be the primary key on cache-hit or a partial/complete match of one of the restore keys'
runs:
using: 'node16'
using: 'node20'
main: '../dist/restore-only/index.js'
branding:
icon: 'archive'
Expand Down
2 changes: 1 addition & 1 deletion save/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:
description: 'An AWS region where the bucket is located'
required: true
runs:
using: 'node16'
using: 'node20'
main: '../dist/save-only/index.js'
branding:
icon: 'archive'
Expand Down

0 comments on commit bf248e7

Please sign in to comment.