mirror of
https://github.com/actions/toolkit.git
synced 2026-08-21 00:00:16 +02:00
add logic to fetch retention time
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user