From b48b32f8ebdbfd958cf9e535daed3fb7cf024fb0 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Fri, 2 Dec 2022 08:46:31 +0200 Subject: [PATCH] action: default to bright green when there is no moment Still unsure how we end up w/ invalid moments, but whatevs. --- .github/actions/update-badge/endpoint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/update-badge/endpoint.js b/.github/actions/update-badge/endpoint.js index b94cb87c..a58bb2ce 100644 --- a/.github/actions/update-badge/endpoint.js +++ b/.github/actions/update-badge/endpoint.js @@ -81,7 +81,7 @@ function colorScale(steps, colors, reversed) { function age(date) { if (!date.add) { - return "red" + return "brightgreen" } const now = moment()