mirror of
https://github.com/jadolg/rocketchat-notification-action.git
synced 2026-05-31 08:37:51 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d2a559372 | |||
| d3cec0115d | |||
| 9f19deb8ed | |||
| 3da587e98c | |||
| 71e5ac5817 |
@@ -1,4 +1,5 @@
|
||||
FROM alpine:3.10
|
||||
RUN apk --no-cache add ca-certificates
|
||||
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"]
|
||||
|
||||
+7
-4
@@ -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 }}
|
||||
|
||||
+2
-3
@@ -1,3 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
echo $1 $2 $3 $4 $5
|
||||
rocketchat-notification -u $1 -p $2 -m $3 -s $4 -c $5
|
||||
#!/usr/bin/env sh
|
||||
rocketchat-notification -u "$1" -p "$2" -m "$3" -s "$4" -c "$5" -code "$6"
|
||||
|
||||
Reference in New Issue
Block a user