mirror of
https://github.com/jadolg/rocketchat-notification-action.git
synced 2026-05-31 08:37:51 +00:00
36 lines
1011 B
YAML
36 lines
1011 B
YAML
name: "Rocket.Chat notification"
|
|
description: "Send a message to Rocket.Chat"
|
|
branding:
|
|
icon: "bell"
|
|
color: "red"
|
|
inputs:
|
|
auth-token:
|
|
description: "Personal access token for your rocket.chat server"
|
|
required: true
|
|
user-id:
|
|
description: "User ID associated with the personal access token"
|
|
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_AUTH_TOKEN: ${{ inputs.auth-token }}
|
|
INPUT_USER_ID: ${{ inputs.user-id }}
|
|
INPUT_MESSAGE: ${{ inputs.message }}
|
|
INPUT_SERVER: ${{ inputs.server }}
|
|
INPUT_CHANNEL: ${{ inputs.channel }}
|