Skip to content

Commit 2b2e4b5

Browse files
committed
main: don't check for workflow conclusion sanity
1 parent c246261 commit 2b2e4b5

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

main.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,6 @@ async function main() {
2121

2222
const client = github.getOctokit(token)
2323

24-
// Allows for both status or conclusion to be used as status filter
25-
const allowedWorkflowConclusions = [
26-
// statuses
27-
"failure",
28-
"success",
29-
"neutral",
30-
"cancelled",
31-
"skipped",
32-
"timed_out",
33-
"action_required",
34-
// conslusions
35-
"queued",
36-
"in_progress",
37-
"completed"
38-
]
39-
4024
if ([runID, branch, pr, commit].filter(elem => elem).length > 1) {
4125
throw new Error("don't specify `run_id`, `branch`, `pr`, `commit` together")
4226
}
@@ -45,10 +29,6 @@ async function main() {
4529
throw new Error("don't specify `run_id`, `workflow_conclusion` together")
4630
}
4731

48-
if(!allowedWorkflowConclusions.includes(workflowConclusion)) {
49-
throw new Error(`unknown workflow conclusion '${workflowConclusion}'`)
50-
}
51-
5232
console.log("==> Repo:", owner + "/" + repo)
5333

5434
if (pr) {

0 commit comments

Comments
 (0)