Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 7659f7d

Browse files
committed
ci: fix workflow run status check
1 parent 58925ec commit 7659f7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/actions/condition/action.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ runs:
4242
});
4343
core.info(JSON.stringify(result));
4444
core.endGroup();
45-
const success = (result.data.workflow_runs[0]?.status === 'completed') ||
46-
(result.data.workflow_runs[1]?.status === 'completed');
45+
const currentConclusion = result.data.workflow_runs[0]?.conclusion;
46+
const success = (currentConclusion ? (currentConclusion === 'success') : true) ||
47+
(result.data.workflow_runs[1]?.conclusion === 'success');
4748
return success;

0 commit comments

Comments
 (0)