Skip to content

Commit

Permalink
feat: release script for dingtalk group 5
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed May 16, 2023
1 parent 372c7da commit ef460d3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions scripts/release-changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ import inquirer from 'inquirer'

const __dirname = url.fileURLToPath(new URL('.', import.meta.url))

const { DINGTALK_TOKEN, DINGTALK_TOKEN_2, DINGTALK_TOKEN_3, DINGTALK_TOKEN_4 } =
process.env
const {
DINGTALK_TOKEN,
DINGTALK_TOKEN_2,
DINGTALK_TOKEN_3,
DINGTALK_TOKEN_4,
DINGTALK_TOKEN_5
} = process.env

if (
!DINGTALK_TOKEN ||
!DINGTALK_TOKEN_2 ||
!DINGTALK_TOKEN_3 ||
!DINGTALK_TOKEN_4
!DINGTALK_TOKEN_4 ||
!DINGTALK_TOKEN_5
) {
console.log('No DINGTALK_TOKEN in your env.')
process.exit(0)
Expand Down Expand Up @@ -56,7 +62,8 @@ async function releaseChangelogToDingTalk() {
DINGTALK_TOKEN,
DINGTALK_TOKEN_2,
DINGTALK_TOKEN_3,
DINGTALK_TOKEN_4
DINGTALK_TOKEN_4,
DINGTALK_TOKEN_5
]) {
await request
.post('https://oapi.dingtalk.com/robot/send')
Expand Down

0 comments on commit ef460d3

Please sign in to comment.