You've already forked dynamic-badges-action
Update index.js
Removed automatically set message. Co-authored-by: Simon Schneegans <code@simonschneegans.de>
This commit is contained in:
6
index.js
6
index.js
@@ -41,11 +41,9 @@ try {
|
||||
if (val > max) val = max;
|
||||
let hue = 0
|
||||
if (invertColorRange == '') {
|
||||
hue = Math.floor((val - min) / (max - min) * 100);
|
||||
content.message = val + " / " + max + " " + content.message
|
||||
hue = Math.floor((val - min) / (max - min) * 120);
|
||||
} else {
|
||||
hue = Math.floor((max - val) / (max - min) * 100);
|
||||
content.message = valColorRange + " " + content.message
|
||||
hue = Math.floor((max - val) / (max - min) * 120);
|
||||
}
|
||||
content.color = "hsl(" + hue + ", 100%, 50%)";
|
||||
} else if (color != '') {
|
||||
|
||||
Reference in New Issue
Block a user