Skip to content

Commit

Permalink
[add] Lark notification of Git commit (fix #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Oct 6, 2024
1 parent 6f8c00c commit 0cea734
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/Lark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,37 @@ jobs:
send-Lark-message:
runs-on: ubuntu-latest
steps:
- name: Commits pushed
uses: foxundermoon/feishu-action@v2
if: github.event_name == 'push'
with:
url: ${{ secrets.LARK_CHATBOT_HOOK_URL }}
msg_type: post
content: |
post:
zh_cn:
title: GitHub 代码提交
content:
- - tag: text
text: 提交链接:
- tag: a
text: ${{ github.event.head_commit.url }}
href: ${{ github.event.head_commit.url }}
- - tag: text
text: 代码分支:
- tag: a
text: ${{ github.ref }}
href: ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.ref_name }}
- - tag: text
text: 提交作者:
- tag: a
text: ${{ github.actor }}
href: ${{ github.server_url }}/${{ github.actor }}
- - tag: text
text: 提交信息:
- tag: text
text: |
${{ github.event.head_commit.message }}
- name: Issue/PR opened
uses: foxundermoon/feishu-action@v2
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
Expand Down

0 comments on commit 0cea734

Please sign in to comment.