committing v1

This commit is contained in:
Vallie Joseph
2023-12-22 03:51:47 +00:00
parent 98e1a813db
commit 7f47ffaee2
2 changed files with 73 additions and 15 deletions

View File

@@ -38,6 +38,7 @@ async function exists(path: string): Promise<boolean> {
}
async function streamExtract(url: string, directory: string): Promise<void> {
core.info(`Stream extract started`)
let retryCount = 0
while (retryCount < 5) {
try {
@@ -61,8 +62,11 @@ async function streamExtractInternal(
url: string,
directory: string
): Promise<void> {
core.info(`Stream extract internal started`)
const client = new httpClient.HttpClient(getUserAgentString())
const response = await client.get(url)
core.info(`Stream extract internal get called`)
if (response.message.statusCode !== 200) {
throw new Error(