Compare commits

...

4 Commits

Author SHA1 Message Date
akiel bbfd4d87d6 Add back the print line 2020-08-14 16:23:31 +02:00
akiel 0c1fe6ed0b Add the actual rocket.chat notification application 2020-08-14 16:20:11 +02:00
akiel 96cf4f14d8 Change to bash 2020-08-14 16:08:39 +02:00
akiel b1c8b450a3 Add parameters and print them 2020-08-14 16:03:31 +02:00
2 changed files with 30 additions and 6 deletions
+27 -4
View File
@@ -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 }}
+3 -2
View File
@@ -1,2 +1,3 @@
#!/usr/bin/env sh
echo "something going on here"
#!/usr/bin/env bash
echo $1 $2 $3 $4 $5
rocketchat-notification -u $1 -p $2 -m $3 -s $4 -c $5