mirror of
https://github.com/jadolg/rocketchat-notification-action.git
synced 2026-05-31 08:37:51 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 71e5ac5817 | |||
| bbfd4d87d6 | |||
| 0c1fe6ed0b | |||
| 96cf4f14d8 | |||
| b1c8b450a3 | |||
| 7d1c5cce10 |
@@ -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
@@ -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 }}
|
||||
|
||||
+2
-1
@@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
echo "something going on here"
|
||||
echo $1 $2 $3 $4 $5
|
||||
rocketchat-notification -u $1 -p $2 -m $3 -s $4 -c $5
|
||||
|
||||
Reference in New Issue
Block a user