Skip to content

Commit

Permalink
fix: failed workflow runs are included
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Sep 27, 2024
1 parent b20a240 commit af48b01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export class HistoryManager {
const GHResponseRuns = await this.GitHubInstance.actions.listWorkflowRunsForRepo({
owner: this.Config.Repo.split('/')[0],
repo: this.Config.Repo.split('/')[1],
workflow_id: this.Config.WorkflowRef
workflow_id: this.Config.WorkflowRef,
status: 'completed',
conclusion: 'success'
})
return GHResponseRuns.data.total_count > 0
}
Expand Down

0 comments on commit af48b01

Please sign in to comment.