You've already forked dynamic-badges-action
🪲 Fix JSON format
This commit is contained in:
2
index.js
2
index.js
@@ -149,7 +149,7 @@ try {
|
|||||||
if (isSvgFile) {
|
if (isSvgFile) {
|
||||||
content = makeBadge(data);
|
content = makeBadge(data);
|
||||||
} else {
|
} else {
|
||||||
content = JSON.stringify({ content: data });
|
content = JSON.stringify(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// For the POST request, the above content is set as file contents for the
|
// For the POST request, the above content is set as file contents for the
|
||||||
|
|||||||
Reference in New Issue
Block a user