From a8f856697f1bed911218a13f5abd26f26f9c1a79 Mon Sep 17 00:00:00 2001 From: Denis Trofimov Date: Wed, 24 May 2023 12:25:54 +0300 Subject: [PATCH 1/2] Dependabot version updates --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3a3cce5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From 7dde6117357bfc68efd5143b23d26118a76faba8 Mon Sep 17 00:00:00 2001 From: Denis Trofimov Date: Wed, 24 May 2023 18:36:32 +0300 Subject: [PATCH 2/2] fix: Convert the line breaks to Slack \n Signed-off-by: Denis Trofimov --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index fc93d99..5451722 100644 --- a/index.js +++ b/index.js @@ -2,9 +2,10 @@ const core = require('@actions/core'); const slackifyMarkdown = require('slackify-markdown'); try { - const md = core.getInput('text', {required: true}); - const mrkdwn = slackifyMarkdown(md); - core.setOutput("text", mrkdwn); + const input = core.getInput('text', { required: true }); + const mrkdwn = slackifyMarkdown(input); + const output = mrkdwn.replace(/\r\n|\r|\n/g, "\\n"); + core.setOutput("text", output); } catch (error) { core.setFailed(error.message); }