From 34aa167be51a438e1ebad01fe0015efadbd618bc Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Wed, 19 May 2021 11:14:12 -0700 Subject: [PATCH] add trailing slash to s3Prefix Signed-off-by: Eli Uriegas --- dist/index.js | 2 +- src/download-artifact.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 438b4ac..d612f28 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31166,7 +31166,7 @@ function run() { } core.debug(`Resolved path is ${resolvedPath}`); const s3 = new AWS.S3({ region: region }); - const s3Prefix = `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${name}`; + const s3Prefix = `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${name}/`; const s3Params = { Bucket: s3Bucket, Prefix: s3Prefix diff --git a/src/download-artifact.ts b/src/download-artifact.ts index e9b0a50..6058cc4 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -23,7 +23,7 @@ async function run(): Promise { } core.debug(`Resolved path is ${resolvedPath}`) const s3 = new AWS.S3({region: region}) - const s3Prefix = `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${name}` + const s3Prefix = `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${name}/` const s3Params = { Bucket: s3Bucket, Prefix: s3Prefix