Skip to content

Commit

Permalink
Tue May 28 16:38:22 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
h4de5ing committed May 28, 2024
1 parent ca2736a commit 0476d37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dingtalk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ jobs:
sleep 1s
- name: Send message using DingTalk Robot
if: ${{ github.event_name == 'push' }}
run: |
curl -X POST 'http://localhost:8080/robot/send' -H 'Content-Type: application/json' -d '{"msgtype":"markdown","markdown":{"title":"${{ github.repository }}","text":"### ${{ github.repository }}\n#### ${{ github.event.pusher.name }}\n>'${{ github.event.head_commit.message }}'"}}'
curl -X POST 'http://localhost:8080/robot/send' -H 'Content-Type: application/json' -d '{"msgtype":"markdown","markdown":{"title":"${{ github.repository }}","text":"### ${{ github.repository }}\n#### ${{ github.event.pusher.name }}\n>${{ github.event.head_commit.message }}"}}'
if: ${{ github.event_name == 'pull_request' }}
run: |
curl -X POST 'http://localhost:8080/robot/send' -H 'Content-Type: application/json' -d '{"msgtype":"markdown","markdown":{"title":"${{ github.repository }}","text":"### ${{ github.repository }}\n#### ${{ github.event.pusher.name }}\n>${{ github.event.pull_request.title }}"}}'

0 comments on commit 0476d37

Please sign in to comment.