add logic to fetch retention time

This commit is contained in:
Bethany
2023-08-03 10:33:29 -07:00
parent f236b725b0
commit f705f1456b
3 changed files with 24 additions and 6 deletions

View File

@@ -30,8 +30,13 @@ export function getWorkSpaceDirectory(): string {
return workspaceDirectory
}
export function getRetentionDays(): string | undefined {
return process.env['GITHUB_RETENTION_DAYS']
export function getRetentionDays(): number | undefined {
//const retentionDays = process.env['GITHUB_RETENTION_DAYS']
const retentionDays = "30"
if (!retentionDays) {
return undefined
}
return parseInt(retentionDays)
}
export function getInitialRetryIntervalInMilliseconds(): number {