Skip to content

Commit

Permalink
ci(label): fix skipping logic
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Aug 17, 2023
1 parent cb99be8 commit b09955c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/label/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ const skip = async ({ github }) => {
});

const runs = linux
? check_runs.filter((run) => run.name === "build")
? check_runs.filter((run) => run.name === "build" || run.name === "build / linux")
: check_runs.filter((run) => run.name === "build / macox-x86");

if (runs.length === 0) return true;
if (runs[0].conclusion !== "skipped") return true;
for (run of runs) {
if (run.conclusion !== "skipped") return true;
}

return false;
};
Expand Down

0 comments on commit b09955c

Please sign in to comment.