Skip to content

Commit

Permalink
Add emoji to logging messages for protect job (mlflow#10412)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <[email protected]>
  • Loading branch information
harupy committed Nov 15, 2023
1 parent 370295f commit daafa3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/protect.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ module.exports = async ({ github, context }) => {
const TIMEOUT = 60 * MINUTE; // 1 hours
while (new Date() - start < TIMEOUT) {
const checks = await fetchChecks(sha);
const longest = Math.max(...checks.map(({ name }) => name.length));
checks.forEach(({ name, status }) => {
console.log(`- name: ${name}, status: ${status}`);
const icon = status === STATE.success ? "✅" : status === STATE.failure ? "❌" : "🕒";
console.log(`- ${name.padEnd(longest)}: ${icon} ${status}`);
});

if (checks.some(({ status }) => status === STATE.failure)) {
Expand Down

0 comments on commit daafa3a

Please sign in to comment.