From b1c8b450a356faa2ebd21340793da1a1dcbcc543 Mon Sep 17 00:00:00 2001 From: akiel Date: Fri, 14 Aug 2020 16:03:31 +0200 Subject: [PATCH] Add parameters and print them --- action.yml | 31 +++++++++++++++++++++++++++---- entrypoint.sh | 4 ++-- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 638cece..16955eb 100644 --- a/action.yml +++ b/action.yml @@ -1,9 +1,32 @@ -# action.yml name: 'Rocket.Chat Notification' description: 'Send a message to Rocket.Chat' -outputs: - response_code: - description: 'The response code for the http call' +inputs: + user: + description: 'The username to login' + required: true + default: '' + password: + description: 'The password to login' + required: true + default: '' + message: + description: 'The message you want to send' + required: true + default: '' + server: + description: 'Your rocket.chat server' + required: false + default: 'https://open.rocket.chat' + channel: + description: 'The channel you want to write to' + required: false + default: 'GENERAL' runs: using: 'docker' image: 'Dockerfile' + args: + - ${{ inputs.user }} + - ${{ inputs.password }} + - ${{ inputs.message }} + - ${{ inputs.server }} + - ${{ inputs.channel }} diff --git a/entrypoint.sh b/entrypoint.sh index 2dfe7ce..2a5deec 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,2 +1,2 @@ -#!/usr/bin/env sh -echo "something going on here" +#!/usr/bin/env bash +echo $1 $2 $3 $4 $5