Skip to content

Commit

Permalink
Update action distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 28, 2024
1 parent f945d41 commit ac533b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ac533b0

Please sign in to comment.