Skip to content

Commit

Permalink
Update resources
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Sep 7, 2024
1 parent 191a122 commit e9c824b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK}}"
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "Text message. Up to 2000 characters."
username: "Webhook"
avatar_url: "https://i.imgur.com/4M34hi2.png"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK}}"
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "Text message. Up to 2000 characters."
username: "Webhook"
avatar_url: "https://i.imgur.com/4M34hi2.png"
Expand Down
4 changes: 4 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const exfetch: ExFetch = new ExFetch({
});
const splitterNewLine = /\r?\n/g;
const splitterCommonDelimiter = /,|\r?\n/g;
console.log("Parse input.");
writeDebug(`Environment Variables:\n${Object.entries(Deno.env.toObject()).map(([key, value]: [string, string]): string => {
return `${key} = ${value}`;
}).join("\n")}`);
try {
const truncateEnable: boolean = (typeof getInputRaw("truncate_enable") === "undefined") ? true : getInputBoolean("truncate_enable");
const stringTruncator: StringTruncator | undefined = truncateEnable ? new StringTruncator(128, {
Expand Down

0 comments on commit e9c824b

Please sign in to comment.