Skip to content

Commit

Permalink
Trim slack webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Sep 21, 2023
1 parent 55b377d commit 3257399
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions actions/utils/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ async function _getSlack(

// Init slack
let slack;
const webhookUrl = await context.secrets
.get("SLACK_WEBHOOK_URL")
.catch(() => "");
const webhookUrl = (
await context.secrets.get("SLACK_WEBHOOK_URL").catch(() => "")
).trim();

if (!notificationsEnabled) {
return undefined;
}
Expand Down

0 comments on commit 3257399

Please sign in to comment.