Skip to content

Commit

Permalink
fix: prereleaseNotice associated with pre
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Nov 8, 2022
1 parent c4d8593 commit 1dd850d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

# Changelog

## v2.3.2

`2022.11.09`

- 🐞 fix: prereleaseNotice associated with pre.

## v2.3.1

`2022.11.08`
Expand Down
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16362,7 +16362,10 @@ function main() {
else {
info(`[Actions] Skip release ${version}.`);
}
const ddNotice = prereleaseNotice === 'true' || !pre;
let ddNotice = !pre;
if (prereleaseNotice && pre) {
ddNotice = true;
}
if (dingdingToken && ddNotice) {
if (dingdingIgnore) {
const ignores = (0, actions_util_1.dealStringToArr)(dingdingIgnore);
Expand Down
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ async function main(): Promise<void> {
info(`[Actions] Skip release ${version}.`);
}

const ddNotice = prereleaseNotice === 'true' || !pre;
let ddNotice = !pre;
if (prereleaseNotice && pre) {
ddNotice = true;
}

if (dingdingToken && ddNotice) {
if (dingdingIgnore) {
Expand Down

0 comments on commit 1dd850d

Please sign in to comment.