Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-unlikelyai committed Feb 12, 2023
1 parent e393d88 commit e57365f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ async function main() {
}
)) {
for (const run of runs.data) {
core.info(`==> (Starting loop run)`)
if (commit && run.head_sha != commit) {
continue
}
Expand All @@ -128,23 +127,16 @@ async function main() {
repo: repo,
run_id: run.id,
})
core.info(`==> (found) Artifacts: ${artifacts} for run ID: ${run.id}`)
core.info(`==> Test 1: ${artifacts}`)
core.info(`==> Test 2: ${artifacts.length == 0}`)
if (!artifacts || artifacts.length == 0) {
continue
}
core.info(`==> Test 3: We found artifacts`)
if (searchArtifacts) {
core.info(`==> (found) Searching for artifacts`)
const artifact = artifacts.find((artifact) => {
return artifact.name == name
})
if (!artifact) {
core.info(`==> Didn't find artifact - contuing`)
continue
}
core.info(`==> Test 4: Found artifact - continuing`)
}
}
runID = run.id
Expand Down

0 comments on commit e57365f

Please sign in to comment.