Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-square

GitHub Action

Post or update slack message

1.0.0

Post or update slack message

message-square

Post or update slack message

Send new or update a slack message from a bot

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Post or update slack message

uses: sliteteam/[email protected]

Learn more about this action in sliteteam/slack-message

Choose a version

Slack message

Simply send a message to Slack from a Slack bot

Usage

inputs:
  token:
    description: 'The slack bot token'
    required: true
  channel:
    description: 'Send the message to this channel'
    required: true
  text:
    description: "The message's base text"
    required: false
  blocks:
    description: "Optional array of blocks (JSON.stringify'ed)"
    required: false
  attachments:
    description: "Optional array of attachements (JSON.stringify'ed)"
    required: false
  appendText:
    description: 'Append given text to original message'
    required: false
  appendBlocks:
    description: 'Append given blocks to original message'
    required: false
  appendAttachments:
    description: 'Append given attachments to original message'
    required: false
  ts:
    description: 'If passed, update matching message instead of posting a new one'
    required: false
outputs:
  ts:
    description: 'Updated or created message for later reference'