mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-26 00:18:30 +02:00
add runAttempt to s3Prefix
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
This commit is contained in:
parent
0504774707
commit
eb9aade5ca
4 changed files with 8 additions and 2 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -31197,7 +31197,9 @@ 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}/`;
|
||||
// TODO: This is a temporary bandaid, see https://github.com/actions/toolkit/pull/1027
|
||||
const runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10);
|
||||
const s3Prefix = `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${runAttempt}/${name}/`;
|
||||
const s3Params = {
|
||||
Bucket: s3Bucket,
|
||||
Prefix: s3Prefix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue