From 0d2a559372a9f3073b0cfadca9edc8bf90006873 Mon Sep 17 00:00:00 2001 From: akiel Date: Fri, 14 Aug 2020 16:51:12 +0200 Subject: [PATCH] Add code parameter --- action.yml | 11 +++++++---- entrypoint.sh | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 16955eb..0fb72ac 100644 --- a/action.yml +++ b/action.yml @@ -2,17 +2,15 @@ name: 'Rocket.Chat Notification' description: 'Send a message to Rocket.Chat' inputs: user: - description: 'The username to login' + description: 'The username to login to your rocket.chat server' required: true default: '' password: - description: 'The password to login' + description: 'The password to login to your rocket.chat server' required: true - default: '' message: description: 'The message you want to send' required: true - default: '' server: description: 'Your rocket.chat server' required: false @@ -21,6 +19,10 @@ inputs: description: 'The channel you want to write to' required: false default: 'GENERAL' + code: + description: 'Set it to true if you wish to have a code block' + required: false + default: 'false' runs: using: 'docker' image: 'Dockerfile' @@ -30,3 +32,4 @@ runs: - ${{ inputs.message }} - ${{ inputs.server }} - ${{ inputs.channel }} + - ${{ inputs.code }} diff --git a/entrypoint.sh b/entrypoint.sh index d8a80c1..81f5575 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,2 +1,2 @@ #!/usr/bin/env sh -rocketchat-notification -u "$1" -p "$2" -m "$3" -s "$4" -c "$5" +rocketchat-notification -u "$1" -p "$2" -m "$3" -s "$4" -c "$5" -code "$6"