Skip to content

Commit

Permalink
Update bundle based on commit ac3d318
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 8, 2024
1 parent 3974a57 commit bc43aa4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ try {
return methodRaw;
})();
const requestHeaders = new Headers({
"User-Agent": `NodeJS/${process.versions.node}-${process.platform}-${process.arch} SendDiscordWebhook.GitHubAction/6.0.1`
"User-Agent": `NodeJS/${process.versions.node}-${process.platform}-${process.arch} SendDiscordWebhook.GitHubAction/6.0.2`
});
const requestPayload = {
tts,
Expand Down Expand Up @@ -467,6 +467,7 @@ try {
requestPayload.thread_name = threadName;
}
const requestPayloadStringify = JSON.stringify(requestPayload);
ghactionsDebug(`Payload: ${requestPayloadStringify}`);
const requestQuery = discordWebhookURLQuery.toString();
const requestBody = await (async () => {
switch (method) {
Expand All @@ -482,12 +483,10 @@ try {
}
requestForm.append("attachments", JSON.stringify(attachments));
requestForm.append("payload_json", requestPayloadStringify);
ghactionsDebug(`FormData: ${requestForm.toString()}`);
return requestForm;
}
case "json":
requestHeaders.set("Content-Type", "application/json");
ghactionsDebug(`Payload: ${requestPayloadStringify}`);
return requestPayloadStringify;
default:
throw new Error(`\`${method}\` is not a valid method!`);
Expand Down
2 changes: 1 addition & 1 deletion node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@hugoalh/send-discord-webhook-ghaction",
"version": "6.0.1",
"version": "6.0.2",
"description": "A GitHub Action to send a Discord webhook.",
"keywords": [
"github-action",
"discord",
"send",
"gh-action",
"ghaction",
"github-action",
"webhook"
],
"homepage": "https://github.com/hugoalh/send-discord-webhook-ghaction#readme",
Expand Down

0 comments on commit bc43aa4

Please sign in to comment.