Skip to content

feishu bot action

Actions
message by Feishu bot, super tiny. run one time cost 1s .support linux macos and window, base node runner not by docker
v2
Latest
Star (16)

Tags

 (2)

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?

feishu bot action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

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

Tags

 (2)

feishu bot action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.