🪲 Fix emoji labels or messages

This commit is contained in:
Simon Schneegans
2023-10-09 08:24:17 +02:00
committed by GitHub
parent 856e1f2e74
commit 6f4d615b2f
2 changed files with 2 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ const gistUrl = new URL(core.getInput("gistID"), core.getInput("host"));
async function updateGist(body) {
const headers = new Headers([
["Content-Type", "application/json"],
["Content-Length", body.length],
["Content-Length", new TextEncoder().encode(body).length],
["User-Agent", "Schneegans"],
["Authorization", `token ${core.getInput("auth")}`],
]);