From ac533b095fc33d76e4579b1cb6f66588a228b8be Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 03:36:19 +0000 Subject: [PATCH] Update action distribution files --- release/dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/dist/index.js b/release/dist/index.js index f30ecfc..535e055 100644 --- a/release/dist/index.js +++ b/release/dist/index.js @@ -39613,7 +39613,7 @@ async function getSuccess(inp) { const { owner, repo } = repoData; const runID = process.env.GITHUB_RUN_ID; const statusResponse = await api.rest.actions.listJobsForWorkflowRun({ owner, repo, run_id: parseInt(runID) }); - const success = statusResponse.data.jobs.filter(job => job.conclusion === 'failure').length === 0; + const success = statusResponse.data.jobs.filter(job => (job.steps ?? []).filter(step => step.conclusion === 'failure').length > 0).length === 0; console.log(`Workflow status is: ${success ? 'success' : 'failure'}`); return success; }