Skip to content

Commit

Permalink
fix: fatal error while processing GitHub workflow runs after creating…
Browse files Browse the repository at this point in the history
… merge commit
  • Loading branch information
piquark6046 committed Mar 9, 2024
1 parent 390db29 commit 3fdb1ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function GetLatestWorkflowTime(ProgramOptions: ProgramOptionsType):
}).then(WorkflowRuns => WorkflowRuns.data.workflow_runs)
for (const WorkflowRun of WorkflowRuns) {
if (WorkflowRun.status === 'completed' && WorkflowRun.conclusion === 'success'
&& (WorkflowRun.event === 'push' || WorkflowRun.event === 'release')
&& DateTime.fromISO(WorkflowRun.updated_at).toMillis() > LatestWorkflowRunTime) {
LatestWorkflowRunTime = DateTime.fromISO(WorkflowRun.updated_at).toMillis()
}
Expand Down

0 comments on commit 3fdb1ea

Please sign in to comment.