add get-artifact logic

This commit is contained in:
Bethany
2023-08-22 09:17:43 -07:00
parent 3aaff6685b
commit 0555a5f458
4 changed files with 75 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ async function exists(path: string): Promise<boolean> {
}
}
async function streamExtract(url: string, directory: PathLike): Promise<void> {
async function streamExtract(url: string, directory: string): Promise<void> {
const client = new httpClient.HttpClient(getUserAgentString())
const response = await client.get(url)