Skip to content

Commit

Permalink
remove branch filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ry4nolson authored Mar 1, 2021
1 parent ea9ea47 commit f2cb630
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main() {
//let workflow_conclusion = core.getInput("workflow_conclusion")
let pr = core.getInput("pr")
let commit = core.getInput("commit")
let branch = core.getInput("branch")
//let branch = core.getInput("branch")
let runID = core.getInput("run_id")

const client = github.getOctokit(token)
Expand Down Expand Up @@ -58,12 +58,11 @@ async function main() {
}

if (!runID) {
const endpoint = "GET /repos/:owner/:repo/actions/workflows/:id/runs?branch=:branch"
const endpoint = "GET /repos/:owner/:repo/actions/workflows/:id/runs"
const params = {
owner: owner,
repo: repo,
id: workflow,
branch: branch
id: workflow
}
for await (const runs of client.paginate.iterator(endpoint, params)) {
const run = runs.data.find(r => {
Expand Down

0 comments on commit f2cb630

Please sign in to comment.