Compare commits

..

3 Commits

Author SHA1 Message Date
akiel b1c8b450a3 Add parameters and print them 2020-08-14 16:03:31 +02:00
akiel 7d1c5cce10 Add notification app 2020-08-14 15:52:21 +02:00
akiel dd226a1f62 Use sh instead of bash 2020-08-14 15:45:54 +02:00
3 changed files with 29 additions and 5 deletions
+1
View File
@@ -1,3 +1,4 @@
FROM alpine:3.10
RUN wget https://github.com/aleph-engineering/rocketchat-notification/releases/download/1.4.1/rocketchat-notification -P /usr/bin/ && chmod +x /usr/bin/rocketchat-notification
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
+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 }}
+1 -1
View File
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
echo "something going on here"
echo $1 $2 $3 $4 $5