mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-27 08:58:28 +02:00
set path correctly
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
This commit is contained in:
parent
b6f5f11fd5
commit
5a1313076c
2 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,7 @@ async function run(): Promise<void> {
|
|||
continue
|
||||
}
|
||||
const localKey = fileObject.Key.replace(s3Prefix, '')
|
||||
core.info(`Downloading ${localKey}`)
|
||||
core.info(`Started download: ${localKey}`)
|
||||
core.debug(`S3 download uri: s3://${s3Bucket}/${fileObject.Key}`)
|
||||
s3.getObject({Bucket: s3Bucket, Key: fileObject.Key}, function (
|
||||
err,
|
||||
|
@ -44,10 +44,10 @@ async function run(): Promise<void> {
|
|||
throw err
|
||||
}
|
||||
fs.writeFileSync(
|
||||
path.resolve(resolvedPath, localKey),
|
||||
path.join(resolvedPath, localKey),
|
||||
fileContents.Body?.toString()
|
||||
)
|
||||
core.info(`DONE: ${localKey}`)
|
||||
core.info(`Done: ${localKey}`)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue