mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-16 22:08:07 +08: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