mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-23 15:08:29 +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
|
||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -5,6 +5,7 @@
|
|||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "download-artifact",
|
||||
"version": "2.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"description": "Download a build artifact that was previously uploaded in the workflow by the upload-artifact action",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"all": "npm run format && npm run build && npm run release",
|
||||
"build": "tsc",
|
||||
"release": "ncc build src/download-artifact.ts",
|
||||
"check-all": "concurrently \"npm:format-check\" \"npm:lint\" \"npm:build\"",
|
||||
|
|
|
@ -40,7 +40,9 @@ async function run(): Promise<void> {
|
|||
}
|
||||
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 as string, 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