1
0
Fork 0

remove folder option in favor of path

pull/1503/head
Bethany 2023-08-23 07:21:01 -07:00
parent ced07aa89c
commit b4f8e602b2
2 changed files with 0 additions and 9 deletions

View File

@ -56,9 +56,6 @@ export async function downloadArtifact(
options?: DownloadArtifactOptions options?: DownloadArtifactOptions
): Promise<DownloadArtifactResponse> { ): Promise<DownloadArtifactResponse> {
let downloadPath = options?.path || getGitHubWorkspaceDir() let downloadPath = options?.path || getGitHubWorkspaceDir()
if (options?.createArtifactFolderName) {
downloadPath = path.join(downloadPath, options?.createArtifactFolderName)
}
if (!(await exists(downloadPath))) { if (!(await exists(downloadPath))) {
core.debug( core.debug(

View File

@ -91,12 +91,6 @@ export interface DownloadArtifactOptions {
* Denotes where the artifact will be downloaded to. If not specified then the artifact is download to GITHUB_WORKSPACE * Denotes where the artifact will be downloaded to. If not specified then the artifact is download to GITHUB_WORKSPACE
*/ */
path?: string path?: string
/**
* Specifies if a root folder with the given name is created for the artifact that is downloaded
* Zip contents are expanded into this folder. A folder will not be created if not specified.
* */
createArtifactFolderName?: string
} }
/***************************************************************************** /*****************************************************************************