mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-26 00:18:30 +02:00
ensure directory is created before downloading
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
This commit is contained in:
parent
c91b9fb13e
commit
5b4e84811e
2 changed files with 10 additions and 0 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -31165,6 +31165,11 @@ function run() {
|
|||
resolvedPath = path_1.default.resolve(chosenPath);
|
||||
}
|
||||
core.debug(`Resolved path is ${resolvedPath}`);
|
||||
// Create directory if it doesn't already exist
|
||||
if (!fs.existsSync(resolvedPath)) {
|
||||
core.debug(`Creating directory (${resolvedPath}) since it did not exist`);
|
||||
fs.mkdirSync(resolvedPath, { recursive: true });
|
||||
}
|
||||
const s3 = new AWS.S3({ region: region });
|
||||
const s3Prefix = `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${name}/`;
|
||||
const s3Params = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue