/action-codexbot-notify

This action sends a notification message to Telegram or Slack chat

Primary LanguageJavaScriptMIT LicenseMIT

banner

@codex_bot notifier

This action sends a notification message to Telegram or Slack chat.

Powered by @codex_bot/notify application.

Inputs

webhook

Required. Endpoint for sending message to chat.

Read the manual to get a webhook endpoint for your chat.

message

Required. Message text.

parse_mode

Mode for parsing entities in the message text. Empty by default.

HTML or Markdown (case insensitive) styles are supported.

disable_web_page_preview

Disables link previews for links in this message. false by default.

Outputs

response-body

Response message

response-code

Response status code

Usage

- name: Send a chat notification via @codex_bot
  uses: codex-team/action-codexbot-notify@v1
  with:
    webhook: ${{ secrets.CODEXBOT_NOTIFY_WEBHOOK }}
    message: '📦 [@editorjs/editorjs](https://npmjs.com/package/@editorjs/editorjs) 2.19.0 was published'
    parse_mode: 'markdown'
    disable_web_page_preview: true

You can use codex-team/action-nodejs-package-info to get package information automatically.

- name: Get package info
  id: package
  uses: codex-team/action-nodejs-package-info@v1

- name: Send a message
  uses: codex-team/action-codexbot-notify@v1
  with:
    webhook: ${{ secrets.CODEX_BOT_CHAT }}
    message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }}  was published'
    parse_mode: 'markdown'
    disable_web_page_preview: true