Skip to content

Commit

Permalink
ci: dingtalk notify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchardxyz committed Dec 10, 2023
1 parent 43964f9 commit 188d6be
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dingtalk-noytify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
}
}

0 comments on commit 188d6be

Please sign in to comment.