mirror of
https://github.com/jadolg/rocketchat-notification-action.git
synced 2026-06-10 21:47:52 +00:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: "Rocket.Chat notification with credentials"
|
|
description: "Send a message to Rocket.Chat"
|
|
branding:
|
|
icon: "bell"
|
|
color: "red"
|
|
inputs:
|
|
user:
|
|
description: "The username to login to your rocket.chat server"
|
|
required: true
|
|
default: ""
|
|
password:
|
|
description: "The password to login to your rocket.chat server"
|
|
required: true
|
|
message:
|
|
description: "The message you want to send"
|
|
required: true
|
|
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: "composite"
|
|
steps:
|
|
- name: Send Rocket.Chat notification
|
|
shell: bash
|
|
run: ${{ github.action_path }}/entrypoint.sh
|
|
env:
|
|
INPUT_USER: ${{ inputs.user }}
|
|
INPUT_PASSWORD: ${{ inputs.password }}
|
|
INPUT_MESSAGE: ${{ inputs.message }}
|
|
INPUT_SERVER: ${{ inputs.server }}
|
|
INPUT_CHANNEL: ${{ inputs.channel }}
|
|
INPUT_CODE: ${{ inputs.code }}
|