Skip to content
message-square

GitHub Action

feishu bot action

v2 Latest version

feishu bot action

message-square

feishu bot action

message by Feishu bot, super tiny. run one time cost 1s .support linux macos and window, base node runner not by docker

Installation

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

              

- name: feishu bot action

uses: foxundermoon/feishu-action@v2

Learn more about this action in foxundermoon/feishu-action

Choose a version

wechat-work-action status

✨ Example Usage

  • text
- name: text message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: text
    content: |
      text: |
        hahahah
        from github action test
        repository: ${{ github.repository }}
        committer: ${{ github.actor }}
        compare: ${{ github.event.compare }}
        job status: ${{ job.status }}
  • post
- name: post message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: post
    content: |
      post:
        zh_cn:
          title: 我是一个标题
          content:
          - - tag: text
              un_escape: true
              text: '第一行 :'
            - tag: a
              text: 超链接
              href: http://www.feishu.cn
            - tag: at
              user_id: ou_18eac85d35a26f989317ad4f02e8bbbb
          - - tag: text
              text: '第二行 :'
            - tag: text
              text: 文本测试
          - - tag: img
              image_key: d640eeea-4d2f-4cb3-88d8-c964fab53987
              width: 300
              height: 300
  • share_chat
- name: share_chat message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: share_chat
    content: |
      share_chat_id: oc_f5b1a7eb27ae2c7b6adc2a74faf339ff
  • image
- name: image message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: image
    content: |
      image_key: img_ecffc3b9-8f14-400f-a014-05eca1a4310g

🔐 Set your secrets here: https://github.com/USERNAME/REPO/settings/secrets.

Contexts and expression syntax for GitHub Actions, here: https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions#github-context

Result

Options

option type description
url string webhook url: https://open.feishu.cn/open-apis/bot/hook/7c5a4a4ba83bxxxxxx
msg_type string message type
content string message content , yaml string

How do I use a robot in a group chat?