mirror of
https://github.com/actions/toolkit.git
synced 2026-08-23 00:00:19 +02:00
Use options to specify download folder
This commit is contained in:
@@ -56,8 +56,8 @@ export async function downloadArtifact(
|
||||
options?: DownloadArtifactOptions
|
||||
): Promise<DownloadArtifactResponse> {
|
||||
let downloadPath = options?.path || getGitHubWorkspaceDir()
|
||||
if (options?.createArtifactFolder) {
|
||||
downloadPath = path.join(downloadPath, 'my-artifact') // TODO: need to pass artifact name
|
||||
if (options?.createArtifactFolderName) {
|
||||
downloadPath = path.join(downloadPath, options?.createArtifactFolderName)
|
||||
}
|
||||
|
||||
if (!(await exists(downloadPath))) {
|
||||
|
||||
Reference in New Issue
Block a user