Skip to content

Commit

Permalink
fix: update minimum number of LatestWorkflowRunTime
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Nov 20, 2023
1 parent 7e44d80 commit 1ea2e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {ProgramOptionsType} from './types'
export async function GetLatestWorkflowTime(ProgramOptions: ProgramOptionsType): Promise<number> {
const GitHubInstance = new GitHub.Octokit({auth: ProgramOptions.ghToken})
const [RepoOwner, RepoName] = ProgramOptions.repo.split('/')
var LatestWorkflowRunTime = Number.MIN_SAFE_INTEGER
var LatestWorkflowRunTime = 0
const WorkflowRuns = await GitHubInstance.actions.listWorkflowRuns({
owner: RepoOwner, repo: RepoName,
workflow_id: /(?<=^[A-z0-9-_]+\/[A-z0-9-_]+\/\.github\/workflows\/).+\.yml(?=@refs\/)/.exec(ProgramOptions.workflowRef)[0],
Expand Down

0 comments on commit 1ea2e57

Please sign in to comment.