-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.3 KB
/
dingtalk-noytify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: DingTalk Notify
on:
workflow_dispatch: # manual trigger workflow to nofify
push:
branches:
- test-dingtalk-notify
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Setup Environment
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV # set PACKAGE_VERSION and PACKAGE_NAME
- name: Notify
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DING_TALK_ACCESS_TOKEN}}
body: |
{
"msgtype": "markdown",
"markdown": {
"title":"🎉 (Test) TSwagger Published 🎉",
"text": "### vscode-tswagger \n\ntswagger`v${{ env.PACKAGE_VERSION }}` had been published. These are the changes:\n\n${{ steps.changelog.outputs.changes }}"
},
"at": {
"isAtAll": false
}
}