Skip to content
bell

GitHub Action

@codex_bot notifier

v1 Latest version

@codex_bot notifier

bell

@codex_bot notifier

Send notification to chat from @codex_bot

Installation

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

              

- name: @codex_bot notifier

uses: codex-team/action-codexbot-notify@v1

Learn more about this action in codex-team/action-codexbot-notify

Choose a version

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